/**
 * @author: Erkan GUNES
 * @copyright: 2007 January
 *
 * @description: SWF Object Control Copyright
 *
 */


function SwfObject() 
{
<!--
	this.param = new Array();
	this.attribute = new Array();
	
		
	this.SwfObject = function(strName, strId, strWidth, strHeight, strVersion, strColor, strQuality) {
		this.attribute = new Array("demo.swf","myid","200","200","9","#FFFFFF","high");
		if(strName) { 
			this.attribute[0] = this.isControl("swf", strName, '.');
		}
		if(strId) {
			this.attribute[1] = strId;
		}
		if(strWidth) {
			this.attribute[2] = strWidth;
		}
		if(strHeight) { 
			this.attribute[3] = strHeight;
		}
		if(strVersion) { 
			this.attribute[4] = strVersion;
		} 
		if(strColor) { 
			this.attribute[5] = strColor;
		}
		if(strQuality) { 
			this.attribute[6] = strQuality;
		}
		
		this.setParam("movie", this.attribute[0]);
		this.setParam("bgcolor", this.attribute[5]);
		this.setParam("quality", this.attribute[6]);
	}
	
	
	this.destroy = function() {
		this.SWFObject = new Object();
		this.param = new Array();
		this.attribute = new Array();
	}
	
	
	this.setParam = function(strName, strValue) {
		this.param += '<param name="' + strName + '" value="' + strValue +'">';
	}
	
	
	this.isControl = function(strCon, strVar, strRegexp) {
		erkVar = strVar.toString().split(strRegexp);
		result = false;
		for (i = 0; i < erkVar.length; i++)
		{
			if (erkVar[i].search(/^(swf)$/) != 0) 
			{
				//result = false;
			}
			else
			{
				result = true;
			}
		}

		if (result) 
		{ 
			return strVar 
		} 
		else 
		{
			return "demo.swf"
		} 
	} 
	
	
	this.isFlash = function() { 
		var erkFlash = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + this.attribute[4] + ',0,0,0" width="' + this.attribute[2] + '" height="' + this.attribute[3] + '" id="' + this.attribute[1] + '">' +
		'<param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" />' + this.param +
		'<embed src="' + this.attribute[0] + '" quality="' + this.attribute[6] + '" ' + this.isWmodeParam(this.param) + this.isMenuParam(this.param) + '  width="' + this.attribute[2] + '" height="' + this.attribute[3] + '" name="preview" align="middle" allowFullScreen="true" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />' +
		'</object>';
		document.write(erkFlash);
		
		this.destroy(); 
		
		return false;
	} 
	
	
	this.isWmodeParam = function(strArr) {
		if(strArr.toString().indexOf('wmode') == -1) {
			return 'bgcolor="' + this.attribute[5] + '" ';
		} else if (strArr.toString().indexOf('opaque') == -1) {
			return 'wmode="transparent"';
		} else {
			return 'bgcolor="' + this.attribute[5] + '" ' + 'wmode="opaque" ';
		}
		return 'wmode="transparent"';
	}
	
	
	this.isMenuParam = function(strArr) {
		if(strArr.toString().indexOf('menu') == -1) {
			return false;
		} 
		return 'menu="false" ';
	}
//-->	
}















































































































































































































function aniFunc() 
{
<!-- 
	this.swt;
	
	this.init = function(swith) 
	{
		if(!swith) 
		{
			return false;
		} 
		this.swt = swith;
	}
	
	this.adFliperEx = function() {
		this.swt.SwfObject("../palet/flip_9f0b1cba5852aff5c4cb1fd5f909dfba.swf", "fliper", "100%", "100%", "8", "#FFFFFF", "high");
		this.swt.setParam('menu','false');
		this.swt.isFlash();
		return false;
	}

	this.adFliperEnEx = function() {
		this.swt.SwfObject("../palet/flip_abc9330bd7fbd2738e047b41af123edc.swf", "fliper", "100%", "100%", "8", "#FFFFFF", "high");
		this.swt.setParam('menu','false');
		this.swt.isFlash();
		return false;
	}
	
	this.adBannEx = function() {
		this.swt.SwfObject("bann.swf", "bann", "220", "290", "9", "#FFFFFF", "high");
		this.swt.setParam('wmode','transparent');
		this.swt.setParam('menu','false');
		this.swt.isFlash();
		return false;
	}
	
	this.adLangsEnEx = function() {
		this.swt.SwfObject("data/langs-en.swf", "bann", "310", "60", "9", "#FFFFFF", "high");
		this.swt.setParam('wmode','transparent');
		this.swt.setParam('menu','false');
		this.swt.isFlash();
		return false;
	}

	this.adLangsEx = function() {
		this.swt.SwfObject("data/langs.swf", "bann", "310", "60", "9", "#FFFFFF", "high");
		this.swt.setParam('wmode','transparent');
		this.swt.setParam('menu','false');
		this.swt.isFlash();
		return false;
	}

	this.adMainPx= function() {
		this.swt.SwfObject("home.swf", "altinkoza", "100%", "100%", "9", "#060702", "high");
		this.swt.setParam('menu','false');
		this.swt.setParam('wmode','opaque');
		this.swt.isFlash();
		return false;
	}

	this.adMainEnPx= function() {
		this.swt.SwfObject("home-en.swf", "altinkoza", "100%", "100%", "9", "#060702", "high");
		this.swt.setParam('menu','false');
		this.swt.setParam('wmode','opaque');
		this.swt.isFlash();
		return false;
	}


//-->	
}
var ska = new aniFunc();
ska.init(new SwfObject());




function getURLS(targ, selObj, restore) 
{
<!--
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex = 0;
//-->
}


function getSend(strName)
{
<!--
	document.forms[strName].submit();
//-->
}













