/*PARAMETERS*/
/* GENERATION: 18:33:41-21, June 2008-3741 */

//Old Script Domain
if(!innity_domain){
	var innity_domain = "http://media1.innity.com/media/200804_911/4282/";	
}

// Creative ID
var creativeId_3741 = "c3741";
var mpid_3741       = "911";
// Media server
var postServer_3741 = "http://tr.innity.com";
var baseServer_3741 =  innity_domain ;
// Cache buster
var cb_3741  = new Date().getTime();
var ver_3741 = "3";
// Main file source
var bannersrc_3741    =  innity_domain + "/Sorakan-Emosi-on-Media-Prima_728_315_3741.swf?";
var fullwidth_3741    = "728";
var fullheight_3741   = "315";
var bannerwidth_3741  = "728";
var bannerheight_3741 = "90"
var bannerwmode_3741  = "transparent";
var zIndexing_3741    = "9999";
var allowDomain_3741  = "";
var creativeType_3741 = "otp";
// Zone
var zone_3741 = 0;
if(typeof innity_zone != "undefined") {
    zone_3741 = innity_zone;
    innity_zone = 0;
}
// Backup source
var bkpimage_3741 =  innity_domain + "/";
// Position
if(typeof m4onIframe_3741 == "undefined") {
	var inIFrame_3741 = false;
	var level_3741    = "self";
}
var pos_3741 = window.eval(level_3741 + ".document");
// Exit link
var numOfCT_3741 = parseInt(1);
/* ClickTAG START */
var clickTAG_3741 = "http://avn.innity.com/avncl.php?maxparams=2__bannerid=3741__zoneid=" + zone_3741 + "__log=yes__cb=" + ver_3741 + "__maxdest=http%253A%2F%2Fwww.hypp.tv";
/* ClickTAG END */
// Tracking 
var eventFile_3741 = "http://media-vn.innity-asia.com/lib/iEvent.js";
var beacon_3741    = "http://avn.innity.com/avnimp.php?mpid=" + mpid_3741 + "&bannerid=3741&zoneid=" + zone_3741 + "&cb=" + cb_3741;
/*ENDPARAMETERS*/
// Visitor environment
function browser_3741() {
    this.ua         = " " + navigator.userAgent.toLowerCase();
    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) && (parseInt(navigator.appVersion) < 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);
    }
}
var mybrowser_3741 = new browser_3741();
// Check for Flash
var hasFlash_3741 = true;
// Object catcher
function c3741_getObj(obj) {
	if(document.layers) {
		return window.eval(level_3741 + ".document.layers")[obj];
	}else if(document.all && !document.getElementById) {
		return window.eval(level_3741 + ".document.all")[obj];
	}else if(document.getElementById) {
		return window.eval(level_3741 + ".document.getElementById('" + obj + "')");
	}else {
		return null;
	}
}
// Flash variables
var flashvar_3741 = "";
bannersrc_3741 += "&m4allowDomain=" + allowDomain_3741 + "&varName="+ creativeId_3741 + "&isIE=" + mybrowser_3741.isIE;
for(i=0; i<numOfCT_3741; i++) {
	if(i == 0) {
		bannersrc_3741 += "&clickTAG=" + clickTAG_3741;
	}else {
		bannersrc_3741 += "&clickTAG" + i + "=" + window.eval("clickTAG" + i + "_3741");
	}
}
// Flash tag
var flashTag_3741 = "";
if(mybrowser_3741.isIE) {
	flashTag_3741 += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	flashTag_3741 += 'id="' + creativeId_3741 + '" ';
	flashTag_3741 += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#" ';
	flashTag_3741 += 'width="' + fullwidth_3741 + '" ';
	flashTag_3741 += 'height="' + fullheight_3741 + '">';
	flashTag_3741 += '<param name="allowScriptAccess" value="always"/>';
	flashTag_3741 += '<param name="quality" value="high"/>';
	flashTag_3741 += '<param name="scaleMode" value="noScale"/>';
	flashTag_3741 += '<param name="salign" value="tl"/>';
	flashTag_3741 += '<param name="movie" value="' + bannersrc_3741 + '"/>';
	flashTag_3741 += '<param name="wmode" value="' + bannerwmode_3741 + '"/>';
	flashTag_3741 += '<param name="flashvars" value="' + flashvar_3741 + '"/>';
	flashTag_3741 += '<param name="base" value="' + baseServer_3741 + '"/>';
	flashTag_3741 += '<param name="allowNetworking" value="all"/>';
	flashTag_3741 += '<param name="allowFullScreen" value="true"/>';
	flashTag_3741 += '</object>';
}else {
    flashTag_3741 += '<embed src="' + bannersrc_3741 + '"';
    flashTag_3741 += ' width="' + fullwidth_3741 + '"';
    flashTag_3741 += ' height="' + fullheight_3741 + '"';
    flashTag_3741 += ' type="application/x-shockwave-flash"';
    flashTag_3741 += ' id="' + creativeId_3741 + '"';
    flashTag_3741 += ' name="' + creativeId_3741 + '"';
    flashTag_3741 += ' flashvars="' + flashvar_3741 + '"';
    flashTag_3741 += ' wmode="' + bannerwmode_3741 + '" ';
    flashTag_3741 += ' swliveconnect="true" ';
    flashTag_3741 += ' allowScriptAccess="always" ';
    flashTag_3741 += ' quality="high" ';
    flashTag_3741 += ' scaleMode="noScale" ';
    flashTag_3741 += ' salign="tl" ';
    flashTag_3741 += ' base="' + baseServer_3741 + '" ';
    flashTag_3741 += ' allowNetworking="all" ';
    flashTag_3741 += ' allowFullScreen="true" ';
    flashTag_3741 += ' pluginspage="http://www.macromedia.com/go/getflashplayer">';
    flashTag_3741 += '</embed>';
}
// Image tag
var imageTag_3741 = "";
imageTag_3741 += '<a href="' + decodeURIComponent(clickTAG_3741) + '" target="_blank"><img id="information3741" src="' + bkpimage_3741 + '" width="' + bannerwidth_3741 + '" height="' + bannerheight_3741 + '" border="0" alt="Information3741" title="Information3741"></a>';
// Write Flash Rules
var writeFlash_3741 = false;
if(creativeType_3741 == "inpage") {
	writeFlash_3741 = true;
}else {
	if(mybrowser_3741.isWin && (mybrowser_3741.isIE || mybrowser_3741.isFirefox)) {
		writeFlash_3741 = true;
	}else {
		// pretend the browser doesn't have flash
		hasFlash_3741 = false;
	}
}
if(!hasFlash_3741) {
	writeFlash_3741 = false;
}
// Start writing
if(writeFlash_3741) {
	var oStyle_3741 = "position:relative;width:" + bannerwidth_3741 + "px;height:" + bannerheight_3741 + "px;z-index:" + zIndexing_3741 + ";";
	var iStyle_3741 = "position:absolute;top:0px;left:0px;width:" + fullwidth_3741 + "px;height:" + fullheight_3741 + "px;clip:rect(0px, " + fullwidth_3741 + "px, " + bannerheight_3741 + "px, " + (fullwidth_3741 - bannerwidth_3741) + "px);";
	document.writeln("<div id=\"M4OUTERDIV_3741\" style=\"" + oStyle_3741 + "\">");
	document.writeln("<div id=\"M4INNERDIV_3741\" style=\"" + iStyle_3741 + "\">");
	document.writeln(flashTag_3741);
	document.writeln("</div></div>");
	if(mybrowser_3741.isIE && !inIFrame_3741) {
		window.c3741 = c3741_getObj(creativeId_3741);
	}
}else {
	document.writeln(imageTag_3741);
}
// Flash hook
function c3741_DoFSCommand(command, args) {
	var args_arr = args.split(",");
	if(command == "expand") {
		c3741_expand();
	}else if(command == "collapse") {
		c3741_shrink();
	}else if(command == "m4external") {
		var jsfunc = args_arr[1];
		for(var i=1; i<args_arr.length; i++) {
			args_arr[i] = "\'" + args_arr[i] + "\'";
		}
		args_arr.splice(0, 2);
		args_new = args_arr.join(",");
		var func = jsfunc + "(" + args_new + ")";
		if(window.execScript) {
			window.execScript(func);
		}else {
			window.eval(func);
		}
	}else if(command == "logEvent" && pos_3741["EventManager_c3741"] != undefined) {
		pos_3741["EventManager_c3741"].logEvent(args_arr[0], args_arr[1], args_arr[2]);
	}
}
if(writeFlash_3741) {
	if(window.attachEvent) {
		c3741_getObj(creativeId_3741).attachEvent("FSCommand", c3741_DoFSCommand);
	}else {
		var register_3741 = window.eval(level_3741);
		register_3741["c3741_DoFSCommand"] = c3741_DoFSCommand;
		c3741_getObj(creativeId_3741).addEventListener("FSCommand", c3741_DoFSCommand, true);
	}
}
// Flash hook functions
function c3741_displaySelectElements(visible) {
	if(mybrowser_3741.isIE) {
		var selectArr = window.eval(level_3741 + ".document.getElementsByTagName(\"SELECT\");");
		for (i=0; i<selectArr.length; i++){
			selectArr[i].style.visibility = visible;
		}
	}
}
// Global Functions
function c3741_registerTimeoutHandler(handler, timeout) {
	return window.setTimeout(handler, timeout);
}
function c3741_registerOnLoadHandler(handler) {	
	handler = new Function(handler);
	if(window.attachEvent) {
		window.attachEvent("onload", handler);
	}else {
		window.addEventListener("load", handler, false);
	}
}
function c3741_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_3741 = new Image();
wbeacon_3741.onAbort = function() {};
wbeacon_3741.onError = function() {};
wbeacon_3741.src = beacon_3741;
wbeacon_3741.width  = 0;
wbeacon_3741.height = 0;
// Misc Functions
function c3741_expand() {
	c3741_getObj("M4INNERDIV_3741").style.clip = "rect(auto, auto, auto, auto)";
}
function c3741_shrink() {
	c3741_getObj("M4INNERDIV_3741").style.clip = "rect(0px, " + fullwidth_3741 + "px, " + bannerheight_3741 + "px, " + (fullwidth_3741 - bannerwidth_3741) + "px)";
}
// Ad start
c3741_shrink();
