function MM_preloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

if (document.images) {
index_B1_off = new Image(); index_B1_off.src = "./img/fejlecytongepitoanyagok.jpg"
index_B1_over = new Image(); index_B1_over.src = "./img/fejlecytongepitoanyagok_over.jpg"
index_B2_off = new Image(); index_B2_off.src = "./img/fejlecsilkameszhomokteglak.jpg"
index_B2_over = new Image(); index_B2_over.src = "./img/fejlecsilkameszhomokteglak_over.jpg"
index_B3_off = new Image(); index_B3_off.src = "./img/fejlecszerszamok.jpg"
index_B3_over = new Image(); index_B3_over.src = "./img/fejlecszerszamok_over.jpg"
}
function turn_off(Imagename) {
	if (document.images != null) {
		document[Imagename].src = eval(Imagename + "_off.src");
	}
}
function turn_over(Imagename) {
	if (document.images != null) {
		document[Imagename].src = eval(Imagename + "_over.src");
	}
}

function nospam(name, domain) {
document.location = "mailto:" + name + "@" + domain + "?subject=Megkeresés a www.y-ytong.hu honlapról...";
}

function openwindow(image,windowwidth,windowheight,title) {
windowheight = windowheight+40;
xpos = (window.screen.width-windowwidth)/2;
ypos = (window.screen.height-windowheight)/2;
var imagewindow=open('','_blank','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,width='+windowwidth+',height='+windowheight+',left='+xpos+',top='+ypos+',resizable=1');
imagewindow.document.write('<html>');
imagewindow.document.write('<title>'+title+'</title>');
imagewindow.document.write('<head><link rel="stylesheet" type="text/css" href="y-ytong.css"></head>');
imagewindow.document.write('<body style="background-color: #ffffff; margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0;">');
imagewindow.document.write('<div class="menu" style="height: 20px; background-color: #f1f1f1" align="center"><b>'+title+'</b></div>');
imagewindow.document.write('<img src='+image+' style="background-image: url(wait.gif); background-repeat: no-repeat; background-position: center center;" ');
imagewindow.document.write('border="0" alt="Nyomtatásnál kérjük, ügyeljen a megfelelő oldalbeállításra (álló-fekvő)."><br>');
imagewindow.document.write('<div class="szoveg" style="height: 20px; background-color: #f1f1f1" align="center">');
imagewindow.document.write('<a href="#" onClick="javascript:window.location.reload();window.print();return false" onfocus="blur()" class="menu">nyomtatás</a> | ');
imagewindow.document.write('<a href="#" onClick="javascript:window.close();return false" onfocus="blur()" class="menu">bezárás</a></div>');
imagewindow.document.write('</body>');
imagewindow.document.write('</html>');
}

function opentable(image,windowwidth,windowheight,title) {
windowheight = windowheight+20;
xpos = (window.screen.width-windowwidth)/2;
ypos = (window.screen.height-windowheight)/2;
var imagewindow=open('','_blank','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,width='+windowwidth+',height='+windowheight+',left='+xpos+',top='+ypos+',resizable=1');
imagewindow.document.write('<html>');
imagewindow.document.write('<title>'+title+'</title>');
imagewindow.document.write('<head><link rel="stylesheet" type="text/css" href="y-ytong.css"></head>');
imagewindow.document.write('<body style="background-color: #ffffff; margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0;">');
imagewindow.document.write('<img src='+image+' style="background-image: url(wait.gif); background-repeat: no-repeat; background-position: center center;" ');
imagewindow.document.write('border="0" alt="Nyomtatásnál kérjük, ügyeljen a megfelelő oldalbeállításra (álló-fekvő)."><br>');
imagewindow.document.write('<div class="szoveg" style="height: 20px; background-color: #f1f1f1" align="center">');
imagewindow.document.write('<a href="#" onClick="javascript:window.location.reload();window.print();return false" onfocus="blur()" class="menu">nyomtatás</a> | ');
imagewindow.document.write('<a href="#" onClick="javascript:window.close();return false" onfocus="blur()" class="menu">bezárás</a></div>');
imagewindow.document.write('</body>');
imagewindow.document.write('</html>');
}

function openvideo(video,windowwidth,windowheight,title) {
xpos = (window.screen.width-windowwidth)/2;
ypos = ((window.screen.height-windowheight)/2-20);
videowindow=open('','_blank','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,width='+windowwidth+',height='+windowheight+',left='+xpos+',top='+ypos+',resizable=0');
videowindow.document.writeln('<html>');
videowindow.document.writeln('<title>'+title+'</title>');
videowindow.document.writeln('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" ');
videowindow.document.writeln('bottommargin="0" rightmargin="0">');
videowindow.document.writeln('<p align="center">');
videowindow.document.writeln('<object NAME="Player" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"');
videowindow.document.writeln('codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"');
videowindow.document.writeln('standby="Windows Media lejátszó betöltése folyamatban... Kis türelmet kérek..." type="application/x-oleobject" />');
videowindow.document.writeln('<param name="url" value="'+video+'" />');
videowindow.document.writeln('<param name="showstatusbar" value="false" />');
videowindow.document.writeln('<param name="autostart" value="true" />');
videowindow.document.writeln('<param name="showdisplay" value="false" />');
videowindow.document.writeln('<param name="enablepositioncontrols" value="true" />');
videowindow.document.writeln('<param name="enablefullscreencontrols" value="false" />');
videowindow.document.writeln('<param name="clicktoplay" value="true" />');
videowindow.document.writeln('<param name="showcontrols" value="true" />');
videowindow.document.writeln('<param name="autosize" value="true" />');
videowindow.document.writeln('<param name="autorewind" value="true" />');
videowindow.document.writeln('<param name="showtracker" value="true" />');
videowindow.document.writeln('<param name="displaysize" value="4" />');
videowindow.document.writeln('<embed name="WMplay" class="kep"');
videowindow.document.writeln('type="application/x-mplayer2"');
videowindow.document.writeln('pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"');
videowindow.document.writeln('src="'+video+'"');
videowindow.document.writeln('allowchangedisplaysize="false"');
videowindow.document.writeln('currentposition="0"');
videowindow.document.writeln('showcontrols="1"');
videowindow.document.writeln('autostart="1"');
videowindow.document.writeln('showstatusbar="0"');
videowindow.document.writeln('showdisplay="0"');
videowindow.document.writeln('autosize="1"');
videowindow.document.writeln('autorewind="1"');
videowindow.document.writeln('</embed>');
videowindow.document.writeln('</object>');
videowindow.document.writeln('</p>');
videowindow.document.writeln('</body>');
videowindow.document.writeln('</html>');
}

