$(document).ready (function () {
    $("div#intro_box h2").flashText ({
    source: "/swf/garamond-1.0.1.swf"
    });
    $("div#intro_content h2").flashText ({
    source: "/swf/garamond-1.0.1.swf"
    });
    $("div.post h1").flashText ({
    source: "/swf/garamond-1.0.1.swf"
    });
    $("div.post h2.alcim").flashText ({
    source: "/swf/garamond-1.0.1.swf"
    });
    $("div#newfunctions h2").flashText ({
    source: "/swf/garamond-1.0.1.swf"
    });
  $("div#flashcontent").flashHack
 ({
  source: "/swf/menu.swf",
  width: "100%",
  height: "100%",
  scale: "noscale",
  wmode: "transparent",
  salign: "lt",
  allowscriptaccess: "always",
  swliveconnect: "true",
  ident: "hulladekboltermek",
  allownetworking: "all",
  query: false
 });
 $("div#leftbar div.menu ul li a").flashText ({
    source: "/swf/verdana-1.0.1.swf"
 });
});

function PrintPage () {
    PrintWindow = window.open ("", "mywindow1","directories=1,fullscreen=1,location=1,menubar=1,resizable=1,scrollbars=1,status=1,titlebar=1,width=800,height=600");
    PrintWindow.document.write ($('#content').html ());
    PrintWindow.document.write ('<p style="clear:both">Az oldal az alábbi linken érhető el: '+window.location.href+'</p>');
}

function openPopup( url, name, width, height, scroll, resize ) {
    if ( width < 1 ){width = 800;}
    if ( height < 1 ){height = 600;}
    if ( scroll == 1 ){scrollbar = 'yes';}else{scrollbar = 'no';}
    if ( resize == 1 ){resizable = 'no';}else{resizable = 'no';}
    w=window.open( url, name, 'width='+width+',height='+height+',directories=no,location=no,menubar=no,scrollbars='+scrollbar+',status=yes,resizable='+resizable+',toolbar=no' );
    w.focus();
}
      function getEncoded (ftValue){
         var ftString = new String ();
         $.each (ftValue.split (""), function (ftKey, ftValue)
         {
          var ftChar = ftValue.charCodeAt (0);
          if (ftChar < 128) { ftString += String.fromCharCode (ftChar); }
          else if (ftChar < 2048) { ftString += String.fromCharCode (((ftChar >> 6) | 192), ((ftChar & 63) | 128)); }
          else { ftString += String.fromCharCode (((ftChar >> 12) | 224), (((ftChar >> 6) & 63) | 128), ((ftChar & 63) | 128)); }
         });
         return ftString;
      }
function FontSizeUp () {
	var currentSize = parseInt($('div#text >').css('font-size'));
	var currentHeight = parseInt($('div#text >').css('line-height'));

	if (currentSize<20) {
		$('div#text >').css('font-size', (currentSize+2)+"px");
		$('div#text >').css('line-height', (currentHeight+3)+"px");
	}
   	return false;
}

function FontSizeDown () {
	var currentSize = parseInt($('div#text >').css('font-size'));
	var currentHeight = parseInt($('div#text >').css('line-height'));

	if (currentSize>12) {
		$('div#text >').css('font-size', (currentSize-2)+"px");
		$('div#text >').css('line-height', (currentHeight-3)+"px");
	}
   	return false;
}
function delDefault(e,o){
if(o.firstTime){return}
o.firstTime=true
o.value=""
}
function RefreshPost () {
	var loc = window.location.toString();
	//alert(loc.indexOf('#bottom')); 
	if (loc.indexOf('#bottom')==-1) {		
		location.href = window.location+"#bottom";
		window.location.reload();
	} else {
		window.location.reload();
	}
}