/*PARAMETERS*/
/* GENERATION: 18:21:46-26, August 2010-20609 */

// Old Script Domain
if(typeof innity_domain == "undefined") {
	var innity_domain = "http://cdn.media.innity.net/201008_2776/11203/";
}
if(typeof innity_ldomain == "undefined") {
	var innity_ldomain = "http://avn.innity.com";
}

// Creative ID
var creativeId_20609 = "c20609";
var mpid_20609       = "2776";
// Media server
var postServer_20609 = "http://cast.innity.com";
var baseServer_20609 = innity_domain;
// Cache buster
var cb_20609  = new Date().getTime();
var ver_20609 = "2";
// Main file source
var bannersrc_20609    = innity_domain + "C20609_2.swf?";
var fullwidth_20609    = "400";
var fullheight_20609   = "200";
var bannerwidth_20609  = "0";
var bannerheight_20609 = "0";
var bannerwmode_20609  = "opaque";
var allowDomain_20609  = document.domain;
var creativeType_20609 = "inpage";
// Zone
var zone_20609 = 0;
if(typeof innity_zone != "undefined") {
    zone_20609 = innity_zone;
    innity_zone = 0;
}
// Backup source
var bkpimage_20609 = innity_domain + "CB20609_2.gif";
// Position
if(typeof m4onIframe_20609 == "undefined") {
	var inIFrame_20609 = false;
	var level_20609    = "self";
}
var pos_20609 = window.eval(level_20609 + ".document");
// Exit link
var numOfCT_20609 = parseInt(1);
/* ClickTAG START */
var clickTAG_20609 = innity_ldomain + "/click/avncl.php?bannerid=20609&zoneid=" + zone_20609 + "&cb=" + ver_20609 + "&url=http%253A%252F%252Fgiant.com.my%252Fpromotion_v2%252Fview%252F133";
for(i=0; i<numOfCT_20609; i++) {
	if(i == 0){
		clickTAG_20609 = encodeURIComponent(clickTAG_20609);
	}else{
		window["clickTAG"+i+"_20609"] = encodeURIComponent(window["clickTAG"+i+"_20609"]);
	}
}
/* ClickTAG END */
// Tracking
var eventFile_20609 = "http://cdn.media.innity.net/lib/innity.js";
var beacon_20609    = innity_ldomain + "/view/" + mpid_20609 + "/20609/" + zone_20609 + "/" + cb_20609;
/*ENDPARAMETERS*/
// Visitor environment
function browser_20609() {
	this.ua         = " " + navigator.userAgent.toLowerCase();
	this.av         = parseInt(navigator.appVersion);
	this.isWin      = (this.ua.indexOf("win") >= 0);
	this.isWinVista = false;
	this.isMac      = (this.ua.indexOf("mac") >= 0);
	this.isLinux    = (this.ua.indexOf("linux") >= 0);
	this.isIE       = (this.ua.indexOf("msie") >= 0);
	this.isNav4     = ((this.ua.indexOf("mozilla") >= 0) && (this.ua.indexOf("compatible") == -1) && (this.av < 5));
	this.isFirefox  = (this.ua.indexOf("firefox") >= 0);
	this.isOpera    = (this.ua.indexOf("opera") > 0);
	if(this.isOpera) {
		this.isIE = false;
	}
	this.isSafari    = (this.ua.indexOf("applewebkit") > 0);
	this.isKonqueror = (this.ua.indexOf("konqueror") > 0);
	this.isGecko     = (this.ua.indexOf("gecko/") > 0);
	this.isCamino    = (this.ua.indexOf("camino/") > 0);
	// Check for Vista
	if(this.isWin) {
		this.isWinVista = (this.ua.indexOf("windows nt 6.0") >= 0);
	}
	this.isIE3   = (this.isIE && (this.av < 4));
	this.isIE4   = (this.isIE && (this.av == 4) && (this.ua.indexOf("msie 4") != -1));
	this.isIE5up = (this.isIE && !this.isIE3 && !this.isIE4); 
	this.isIE6   = (this.isIE5up && (this.ua.indexOf("msie 6") >= 0));
}
var mybrowser_20609 = new browser_20609();
// Layer
var zIndexing_20609 = "9000";
// Check for Flash
var hasFlash_20609 = false;
var fp_20609 = navigator.plugins["Shockwave Flash"];
if(fp_20609 && fp_20609.description) {
	hasFlash_20609 = true;
}else if(window.ActiveXObject) {
	for(fp_20609=7; fp_20609<=100; fp_20609++) {
		try {
			oFlash_20609 = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + fp_20609 + "');");
			if(oFlash_20609) {
				hasFlash_20609 = true;
				break;
			}
		}catch(e) {}
	}
}
// Object catcher
function c20609_getObj(obj) {
	if(document.layers) {
		return window.eval(level_20609 + ".document.layers")[obj];
	}else if(document.all && !document.getElementById) {
		return window.eval(level_20609 + ".document.all")[obj];
	}else if(document.getElementById) {
		return window.eval(level_20609 + ".document.getElementById('" + obj + "')");
	}else {
		return null;
	}
}
// Flash variables
var flashvar_20609 = "";
flashvar_20609 += "isIE=" + mybrowser_20609.isIE;
bannersrc_20609 += "_allowDomain=" + allowDomain_20609 + "&_innity="+ creativeId_20609;
for(i=0; i<numOfCT_20609; i++) {
	if(i == 0) {
		flashvar_20609 += "&clickTAG=" + clickTAG_20609;
	}else {
		flashvar_20609 += "&clickTAG" + i + "=" + window.eval("clickTAG" + i + "_20609");
	}
}
// Flash tag
var flashTag_20609 = "";
if(mybrowser_20609.isIE) {
	flashTag_20609 += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	flashTag_20609 += 'id="' + creativeId_20609 + '" ';
	flashTag_20609 += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#" ';
	flashTag_20609 += 'width="' + fullwidth_20609 + '" ';
	flashTag_20609 += 'height="' + fullheight_20609 + '">';
	flashTag_20609 += '<param name="allowScriptAccess" value="always"/>';
	flashTag_20609 += '<param name="quality" value="high"/>';
	flashTag_20609 += '<param name="scaleMode" value="noScale"/>';
	flashTag_20609 += '<param name="salign" value="tl"/>';
	flashTag_20609 += '<param name="movie" value="' + bannersrc_20609 + '"/>';
	flashTag_20609 += '<param name="wmode" value="' + bannerwmode_20609 + '"/>';
	flashTag_20609 += '<param name="flashvars" value="' + flashvar_20609 + '"/>';
	flashTag_20609 += '<param name="base" value="' + baseServer_20609 + '"/>';
	flashTag_20609 += '<param name="menu" value="false"/>';
	flashTag_20609 += '<param name="allowNetworking" value="all"/>';
	flashTag_20609 += '<param name="allowFullScreen" value="true"/>';
	flashTag_20609 += '</object>';
}else {
	flashTag_20609 += '<embed src="' + bannersrc_20609 + '"';
	flashTag_20609 += ' width="' + fullwidth_20609 + '"';
	flashTag_20609 += ' height="' + fullheight_20609 + '"';
	flashTag_20609 += ' type="application/x-shockwave-flash"';
	flashTag_20609 += ' id="' + creativeId_20609 + '"';
	flashTag_20609 += ' name="' + creativeId_20609 + '"';
	flashTag_20609 += ' flashvars="' + flashvar_20609 + '"';
	flashTag_20609 += ' wmode="' + bannerwmode_20609 + '" ';
	flashTag_20609 += ' swliveconnect="true" ';
	flashTag_20609 += ' allowScriptAccess="always" ';
	flashTag_20609 += ' quality="high" ';
	flashTag_20609 += ' scaleMode="noScale" ';
	flashTag_20609 += ' salign="tl" ';
	flashTag_20609 += ' base="' + baseServer_20609 + '" ';
	flashTag_20609 += ' menu="false" ';
	flashTag_20609 += ' allowNetworking="all" ';
	flashTag_20609 += ' allowFullScreen="true" ';
	flashTag_20609 += ' pluginspage="http://www.macromedia.com/go/getflashplayer">';
	flashTag_20609 += '</embed>';
}
// Image tag
var imageTag_20609 = "";
imageTag_20609 += '<a href="' + decodeURIComponent(clickTAG_20609) + '" target="_blank"><img id="information20609" src="' + bkpimage_20609 + '" width="' + fullwidth_20609 + '" height="' + fullheight_20609 + '" border="0" alt="Information20609" title="Information20609"></a>';
// Write Flash Rules
var writeFlash_20609 = false;
if(mybrowser_20609.isWin) {
	if(mybrowser_20609.isIE5up) {
		writeFlash_20609 = true;
	}
	if(mybrowser_20609.isFirefox) {
		writeFlash_20609 = true;
	}
	if(mybrowser_20609.isSafari) {
		writeFlash_20609 = true;
	}
	if(mybrowser_20609.isOpera) {
		writeFlash_20609 = true;
	}
}
if((mybrowser_20609.isMac)) {
	if(mybrowser_20609.isFirefox) {
		writeFlash_20609 = true;
	}
	if(mybrowser_20609.isSafari) {
		writeFlash_20609 = true;
	}
}
if(!hasFlash_20609) {
	writeFlash_20609 = false;
}
// Start writing
if(writeFlash_20609) {
	if(inIFrame_20609) {
		/*FRAMEBREAKER*/
		/*ENDFRAMEBREAKER*/
	}else {
		document.writeln(flashTag_20609);
	}
	if(mybrowser_20609.isIE && !inIFrame_20609) {
		window.c20609 = c20609_getObj(creativeId_20609);
	}
}else {
	document.writeln(imageTag_20609);
}
// Flash hook
function c20609_DoFSCommand(command, args) {
	var args_arr = args.split(",");
	if(command == "logEvent" && typeof pos_20609["EventManager_c20609"] != "undefined") {
		pos_20609["EventManager_c20609"].logEvent(args_arr[0], args_arr[1], args_arr[2]);
	}
}
if(writeFlash_20609) {
	if(window.attachEvent) {
		c20609_getObj(creativeId_20609).attachEvent("FSCommand", c20609_DoFSCommand);
	}else {
		var register_20609 = window.eval(level_20609);
		register_20609["c20609_DoFSCommand"] = c20609_DoFSCommand;
		c20609_getObj(creativeId_20609).addEventListener("FSCommand", c20609_DoFSCommand, true);
	}
}
// Flash hook functions
function c20609_displaySelectElements(visible) {
	if(mybrowser_20609.isIE) {
		var selectArr = window.eval(level_20609 + ".document.getElementsByTagName(\"SELECT\");");
		for (i=0; i<selectArr.length; i++){
			selectArr[i].style.visibility = visible;
		}
	}
}
/*RICHMEDIA*/
try {
	if(writeFlash_20609) {		
		if(typeof InnityAd == "undefined") {
			var doc = document.getElementsByTagName("head").item(0);
			var js  = document.createElement("script");
			js.setAttribute("type", "text/javascript");
			js.setAttribute("src", eventFile_20609);
			doc.appendChild(js);
			if(mybrowser_20609.isIE) {
				js.onreadystatechange = function () {
					if (js.readyState == "loaded" || js.readyState == "complete") {
						pos_20609["EventManager_c20609"] = new InnityAd(creativeId_20609, postServer_20609, level_20609);
						c20609_registerImpact();
					}
				}
			}else {
				js.onload = function() {
					pos_20609["EventManager_c20609"] = new InnityAd(creativeId_20609, postServer_20609, level_20609);
					c20609_registerImpact();
				}
			}
		}else {
			pos_20609["EventManager_c20609"] = new InnityAd(creativeId_20609, postServer_20609, level_20609);
			c20609_registerImpact();
		}
	}
}catch(e) {
}
var c20609_impactID;
function c20609_DoMouseover() {
	c20609_impactID = c20609_registerTimeoutHandler("c20609_impactStart()", "3000");
}
function c20609_DoMouseout() {
	window.clearTimeout(c20609_impactID);
	pos_20609["EventManager_c20609"].logEvent("20609", "_impact", "p");
}
function c20609_impactStart() {
	pos_20609["EventManager_c20609"].logEvent("20609", "_impact", "s");
}
function c20609_registerImpact() {
	if(window.attachEvent) {
		c20609_getObj(creativeId_20609).attachEvent("onmouseover", c20609_DoMouseover);
		c20609_getObj(creativeId_20609).attachEvent("onmouseout", c20609_DoMouseout);
	}else {
		register_20609["c20609_DoMouseover"] = c20609_DoMouseover;
		register_20609["c20609_DoMouseout"]  = c20609_DoMouseout;
		c20609_getObj(creativeId_20609).addEventListener("mouseover", c20609_DoMouseover, true);
		c20609_getObj(creativeId_20609).addEventListener("mouseout", c20609_DoMouseout, true);
	}
}
/*ENDRICHMEDIA*/
// Global Functions
function c20609_registerTimeoutHandler(handler, timeout) {
	return window.setTimeout(handler, timeout);
}
function c20609_registerOnLoadHandler(handler) {
	handler = new Function(handler);
	if(window.attachEvent) {
		window.attachEvent("onload", handler);
	}else {
		window.addEventListener("load", handler, false);
	}
}
function c20609_registerOnUnloadHandler(handler) {
	handler = new Function(handler);
	if(window.attachEvent) {
		window.attachEvent("onbeforeunload", handler);
	}else {
		window.addEventListener("unload", handler, false);
	}
}
// Finish loading + Third party tracking
var wbeacon_20609 = new Image();
wbeacon_20609.onAbort = function() {};
wbeacon_20609.onError = function() {};
wbeacon_20609.src = beacon_20609;
wbeacon_20609.width  = 0;
wbeacon_20609.height = 0;


// Misc Functions
function c20609_expand() {
}
function c20609_shrink() {
}
// Ad start

