/**
 * @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" />' + 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="start" 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.adLogoEx = function() {
		this.swt.SwfObject("animation/logo250x315.swf", "logoexp", "250", "315", "9", "#FFFFFF", "high");
		this.swt.setParam('wmode','transparent');
		this.swt.setParam('menu','false');
		this.swt.isFlash();
		return false;
	}

	this.adBannerdEx = function(strPath) {
		this.swt.SwfObject("animation/banner590x222.swf", "bann", "590", "222", "9", "#FFFFFF", "high");
		this.swt.setParam('wmode','transparent');
		this.swt.setParam('menu','false');
		this.swt.isFlash();
		return false;
	}
	
	this.adCasEx = function() {
		this.swt.SwfObject("animation/clock_black.swf", "cast", "160", "57", "9", "#FFFFFF", "high");
		this.swt.setParam('wmode','transparent');
		this.swt.setParam('menu','false');
		this.swt.isFlash();
		return false;
	}

	this.adVideoEx = function() {
		this.swt.SwfObject("animation/sedef480x400.swf", "video", "100%", "100%", "9", "#000000", "high");
		this.swt.setParam('menu','false');
		this.swt.isFlash();
		return false;
	}

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





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


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



var resize_out = function()
{
<!--
	var divHeight 	= 0;
	var elmnt 		= document.getElementById('ctr');
	var relmnt 		= document.getElementById('tstart');
		
	if(elmnt.offsetHeight)
	{
		divHeight = (elmnt.offsetTop + elmnt.offsetHeight);
	} 
	else if(elmnt.style.pixelHeight) 
	{
		divHeight = (elmnt.style.pixelTop + elmnt.style.pixelHeight);
	} 
		
	relmnt.style.height = (divHeight + 40) + 'px';
//-->
}
	
	
window.onload=function() 
{
	if(document.getElementsByTagName) 
	{
		resize_out();
	} 
}









