﻿function OpenPopup(DosyaAdi,Dosya,Genislik,Yukseklik)
{
	leftPos = 0
	topPos = 0
	if (screen){
	leftPos = parseInt((screen.width-Genislik)/2)
	topPos = parseInt((screen.height-Yukseklik)/2) 
	}
	var popup = window.open(DosyaAdi,Dosya,'width='+Genislik+',height='+Yukseklik+',left='+leftPos+',top='+topPos+',resizable=no,status=no,scrollbars=no');
	if(popup == null){
		alert('Tüm sayfalarımıza ulaşmak için açılır pencere engelleyicisini\n(popup blocker) kapatmalısınız');
	}
}

function OpenPopupIK(DosyaAdi,Dosya,Genislik,Yukseklik)
{
	leftPos = 0
	topPos = 0
	if (screen){
	leftPos = parseInt((screen.width-Genislik)/2)
	topPos = parseInt((screen.height-Yukseklik)/2) 
	}
	var popup = window.open(DosyaAdi,Dosya,'width='+Genislik+',height='+Yukseklik+',left='+leftPos+',top='+topPos+',resizable=no,status=no,scrollbars=yes');
	if(popup == null){
		alert('Tüm sayfalarımıza ulaşmak için açılır pencere engelleyicisini\n(popup blocker) kapatmalısınız');
	}
}

function changeImg(img,element)
{
	document.getElementById(element).src=img;							
}


function getSWF(swWidth, swHeight, swFile, swWmode) {
    var str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width=' + swWidth + ' height=' + swHeight + ' VIEWASTEXT>';
    str += '<param name="movie" value="' + swFile + '" />';
    str += '<param name="quality" value="high" />';
    // wmode = window, transparent, opaque
    str += '<param name="wmode" value="' + swWmode + '" />';
    str += '<param name="menu" value="false" />';
    str += '<embed src="' + swFile + '" width=' + swWidth + ' height=' + swHeight + ' menu="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed></object>';
    document.write(str);
}
