﻿//Author Murat MArkaryan 

function InsertFlash1() {
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="72" height="74">\n');
    document.write('<param name=movie value="flash/logo.swf">\n');
    document.write('<param name=wmode value=transparent>\n');
    document.write('<param name=quality value=high>\n');
    document.write('<embed src="flash/logo.swf" quality=high pluginspage="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="72" height="74">\n');
    document.write('</embed>\n');
    document.write('</object>\n');
}


function InsertFlash2() {
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"   codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="682" height="53" id="flashcontainer" style="position:absolute;z-index:1000;" viewastext>\n');
    document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
    document.write('<param name="movie" value="menuNET.swf" />\n');
    document.write('<param name="menu" value="false" />\n');
    document.write('<param name="quality" value="best" />\n');
    document.write('<param name="salign" value="lt" />\n');
    document.write('<param name="wmode" value="transparent" />\n');
    document.write('<param name="bgcolor" value="#cccccc" />\n');
    document.write('<embed style="z-index:1000;" src="menuNET.swf" menu="false" quality="best" salign="lt" wmode="transparent" bgcolor="#cccccc" width="682" height="53" name="flashcontainer" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>\n');
}


function InsertFlash3() {
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="550" height="101">\n');
    document.write('<param name=movie value="flash/flash_finans.swf">\n');
    document.write('<param name=wmode value=transparent>\n');
    document.write('<param name=quality value=high>\n');
    document.write('<embed src="flash/flash_finans.swf" quality="high" wmode="transparent" pluginspage="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="550" height="101">\n');
    document.write('</embed>\n');
    document.write('</object>\n');
}


function InsertFlash4(menuPath) {
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="555" height="155" id=ShockwaveFlash1>\n');
    document.write('<param name="movie" value=' + menuPath + '>\n');
    document.write('<param name="quality" value="high">\n');
    document.write('<param name="wmode" value="transparent">\n');
    document.write('<embed src=' + menuPath + ' quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="555" height="155"></embed></object>\n');
    document.write('</object>\n');
}


function InsertFlash5() {
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"   codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" width="682" height="300" id="flashcontainer" style="position:absolute;z-index:1000;" viewastext>\n');
    document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
    document.write('<param name="movie" value="/en/xml/menu.swf" />\n');
    document.write('<param name="menu" value="false" />\n');
    document.write('<param name="quality" value="best" />\n');
    document.write('<param name="salign" value="lt" />\n');
    document.write('<param name="wmode" value="transparent" />\n');
    document.write('<param name="bgcolor" value="#cccccc" />\n');
    document.write('<embed style="z-index:1000;" src="/en/xml/menu.swf" menu="false" quality="best" salign="lt" wmode="transparent" bgcolor="#cccccc" width="682" height="300" name="flashcontainer" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>\n');
}

function OpenInternetBranch(lang) {
    //Internet Şube Tıklanması WebTrends Loglama Start
    //Image cachelenmemesi icin randomId uretiyoruz.
    var tarih = new Date();
    var tarihString = tarih.getTime();

    //Urettigimiz randomId yi, requestin sonuna ekliyoruz.
    imageURL = "http://www.kuveytturk.com.tr/1x1px.gif?action=InternetSube&randomId=" + tarihString;
    fakeImage = new Image();
    fakeImage.src = imageURL;
    //Internet Şube Tıklanması WebTrends Loglama End


    var newWindow = null;
    newWindow = window.open('https://sube.kuveytturk.com.tr/webprod/default.aspx?lang=' + lang, 'KuveytTurkinternetSubesi', 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=800,height=600,top=0,left=0')
    //newWindow = window.open('https://sube.kuveytturk.com.tr/','KuveytTurkinternetSubesi','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=800,height=600,top=0,left=0')
    if (window.focus) {
        newWindow.focus();
    }
}

function setFlashWidth(divid, newW) {
    if (window.document[divid])
        window.document[divid].style.width = newW + "px";
    else
        document.getElementById(divid).style.width = newW+"px";
}

function setFlashHeight(divid, newH) {
    if (window.document[divid])
        window.document[divid].style.height = newH + "px";
    else
        document.getElementById(divid).style.height = newH+"px";  
}

function setFlashSize(divid, newW, newH) {
    
    setFlashWidth(divid, newW);
    setFlashHeight(divid, newH);
}
