function flash_goster(file,width,height){
document.writeln("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='"+width+"' HEIGHT='"+height+"' id='contents' ALIGN=''>");
document.writeln("<PARAM NAME='movie' value='"+file+"' />");
document.writeln("<PARAM NAME='quality' VALUE='high'>");
document.writeln("<PARAM NAME='wmode' VALUE='transparent'>");

document.writeln("<embed src='"+file+"' quality='high' wmode='transparent' width='"+width+"' height='"+height+"' name='contents' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='https://www.macromedia.com/go/getflashplayer' />");
document.writeln("</OBJECT>");
}

function flash_reklam(dosya,en,boy){
document.writeln("<embed src='"+dosya+"' quality='high' wmode='transparent' width='"+en+"' height='"+boy+"' name='contents' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='https://www.macromedia.com/go/getflashplayer' style='position: absolute; right:0; top:0' />");
}


function meth(){
document.writeln("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='160' HEIGHT='100' id='contents' ALIGN=''>");
document.writeln("<PARAM NAME=movie value='templates/<?=$templatedir?>/flash/meth.swf' />");
document.writeln("<PARAM NAME=quality VALUE=high>");

document.writeln("<PARAM NAME=bgcolor VALUE=#ffffff>");

document.writeln("<embed src='templates/<?=$templatedir?>/flash/meth.swf' quality='high' bgcolor='#ffffff' width='160' height='100' name='contents' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='https://www.macromedia.com/go/getflashplayer' />");
document.writeln("</OBJECT>");
}

function sayfagit(gelen){
if(trimAll(gelen)!=""){
location.href=gelen;
}
}


function trimAll(sString) 
{
    while (sString.substring(0,1) == ' ')
    {
        sString = sString.substring(1, sString.length);
    }
    
    while (sString.substring(sString.length-1, sString.length) == ' ')
    {
        sString = sString.substring(0,sString.length-1);
    }
    return sString;
}