// JavaScript Document

// JAVASCRIPT VARS
// cache buster
var cacheBuster = "?t=" + Date.parse(new Date());
// stage dimensions		
var stageW = "970";//"100%";
var stageH = "200";//"100%";


// ATTRIBUTES
var attributes = {};
attributes.id = 'swf2-navi';
attributes.name = 'swf2-navi';

// PARAMS
var params = {};
params.bgcolor = "#FFF";
/*params.menu = "false";*/
params.scale = 'noScale';
params.wmode = "transparent";
/*params.allowfullscreen = "true";*/
params.allowScriptAccess = "always";


/* FLASH VARS */
var flashvars = {/** home */
				 clickTag4: "http://www.canaan.web.id/", 
				/** panduan */
				 clickTag11: "http://www.canaan.web.id/panduan/panduan-pemula", 
				 clickTag12: "http://www.canaan.web.id/panduan/sejarah",
				 clickTag13: "http://www.canaan.web.id/panduan/class",
				 clickTag14: "http://www.canaan.web.id/panduan/pet", 
				 clickTag15: "http://www.canaan.web.id/panduan/fitur", 
				 /** item mall */
				 clickTag21: "http://www.canaan.web.id/index2.php?page=voucher#news-index",
				 clickTag22: "http://www.canaan.web.id/index2.php?page=item#news-index",
				 clickTag23: "http://www.canaan.web.id/index2.php?page=inventori#news-index", 
				 clickTag24: "http://www.canaan.web.id/index2.php?page=belanja#news-index", 
				 /** komunitas */
				 clickTag31: "http://forum.canaan.web.id/",
				 clickTag32: "http://www.canaan.web.id/",
				 clickTag33: "http://www.canaan.web.id/komunitas/wallpaper", 
				 clickTag34: "http://www.canaan.web.id/komunitas/screenshot", 
				 /** support */
				 clickTag41: "http://www.canaan.web.id/support/faq", 
				 clickTag42: "http://www.canaan.web.id/support/bantuan-teknis", 
				 clickTag43: "http://www.canaan.web.id/support/ketentuan"};

/// if commented / delete these lines, the component will take the stage dimensions defined 
/// above in "JAVASCRIPT SECTIONS" section or those defined in the settings xml
flashvars.componentWidth = stageW;
flashvars.componentHeight = stageH;

/// path to the content folder(where the xml files, images or video are nested)
/// if you want to use absolute paths(like "http://domain.com/images/....") then leave it empty("")

/** EMBED THE SWF**/
swfobject.embedSWF("http://www.canaan.web.id/swf/swf-navi.swf"+cacheBuster, attributes.id, stageW, stageH, "9.0.0", "http://www.canaan.web.id/swf/expressInstall.swf", flashvars, params, attributes);
