function addEvent(objObject,strEventName,fnHandler){if(objObject.addEventListener){objObject.addEventListener(strEventName, fnHandler, false);}else if (objObject.attachEvent) {objObject.attachEvent('on' + strEventName, fnHandler); }}

function init()
{
	MM_preloadImages(	
	//'http://n.yam.com/i/maintag21a.gif','http://n.yam.com/i/maintag22a.gif','http://n.yam.com/i/maintag23a.gif' //頭條新聞排行,影音新聞排行,圖片新聞排行
	//'http://n.yam.com/i/maintag21b.gif','http://n.yam.com/i/maintag23b.gif'
	//,'http://n.yam.com/i/miantag_r2_c3.jpg','http://n.yam.com/i/miantag_r2_c12.jpg' //news最新,hot熱門 for index
	//,'http://n.yam.com/i/miantag_r2_c3b.jpg','http://n.yam.com/i/miantag_r2_c12b.jpg'
	
	//,'http://n.yam.com/i/tag71a.gif','http://n.yam.com/i/tag72a.gif'//news最新,hot熱門 for single page
	//,'http://n.yam.com/i/tag71b.gif','http://n.yam.com/i/tag72b.gif'

	'http://n.yam.com/i/tag101a.gif','http://n.yam.com/i/tag102a.gif'//台股看盤,外匯報價
	,'http://n.yam.com/i/tag101b.gif','http://n.yam.com/i/tag102b.gif'
	,'http://n.yam.com/i/tag111a.gif','http://n.yam.com/i/tag112a.gif'//生活資訊,天氣預測
	,'http://n.yam.com/i/tag111b.gif','http://n.yam.com/i/tag112b.gif'
	,'http://n.yam.com/i/t121a.gif','http://n.yam.com/i/t122a.gif'//工具箱,世界時刻
	,'http://n.yam.com/i/t121b.gif','http://n.yam.com/i/t122b.gif'
	,'http://n.yam.com/i/t131a.gif','http://n.yam.com/i/t132a.gif'//新聞檢索,熱門搜尋
	,'http://n.yam.com/i/t131b.gif','http://n.yam.com/i/t132b.gif'
	//,'http://n.yam.com/i/t141a.gif','http://n.yam.com/i/t142a.gif'//新聞源,影音新聞
	//,'http://n.yam.com/i/t141b.gif','http://n.yam.com/i/t142b.gif'
	/*
	,'http://n.yam.com/i/vt1a.gif','http://n.yam.com/i/vt5a.gif'//圖片專輯,新聞專輯
	,'http://n.yam.com/i/vt1b.gif','http://n.yam.com/i/vt5b.gif'
	*/	
	//,'http://n.yam.com/i/vt3a.gif','http://n.yam.com/i/vt8a.gif'//討論最新,討論最熱
	//,'http://n.yam.com/i/vt3b.gif','http://n.yam.com/i/vt8b.gif'
	//,'http://n.yam.com/i/vt4a.gif','http://n.yam.com/i/vt7a.gif'//雜誌最新,雜誌最熱
	//,'http://n.yam.com/i/vt4b.gif','http://n.yam.com/i/vt7b.gif'
		
	,'http://n.yam.com/i/d-bg-1a.gif','http://n.yam.com/i/d-bg-2a.gif'//news最新,hot熱門 for focus
	,'http://n.yam.com/i/d-bg-1b.gif','http://n.yam.com/i/d-bg-2b.gif'
	);
	
}
//window.onload=init; 
addEvent(window,'load',init);

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0

  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
  
  for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){
   	document.MM_sr[j++]=x; 
   	if(!x.oSrc) 
   		x.oSrc=x.src; x.src=a[i+2];
   }
}

		function dump_props(obj,objName)
		{
			var result = "";
			for (var i in obj) {
				result += objName+"."+i+"=" + obj[i]+"<br>";
			}
			result+="<hr>";
			return result;	
		}
//=======================次頁摩天區頁籤====================//
//專輯
var album_array=new Array();
	album_array[0]=new Array("http://n.yam.com/i/vt1a.gif","http://n.yam.com/i/vt5a.gif");
	album_array[1]=new Array("http://n.yam.com/i/vt1b.gif","http://n.yam.com/i/vt5b.gif");
	album_array[2]=0;

//影片
/*
var video_array=new Array();
	video_array[0]=new Array("http://n.yam.com/i/vt2a.gif","http://n.yam.com/i/vt6a.gif");
	video_array[1]=new Array("http://n.yam.com/i/vt2b.gif","http://n.yam.com/i/vt6b.gif");
	video_array[2]=0;
*/	
//討論
var discuss_array=new Array();
	discuss_array[0]=new Array("http://n.yam.com/i/vt3a.gif","http://n.yam.com/i/vt8a.gif");
	discuss_array[1]=new Array("http://n.yam.com/i/vt3b.gif","http://n.yam.com/i/vt8b.gif");
	discuss_array[2]=0;
	
//雜誌
var magazine_array=new Array();
	magazine_array[0]=new Array("http://n.yam.com/i/vt4a.gif","http://n.yam.com/i/vt7a.gif");
	magazine_array[1]=new Array("http://n.yam.com/i/vt4b.gif","http://n.yam.com/i/vt7b.gif");
	magazine_array[2]=0;
	
//工具箱
var toolBox_array=new Array();
	toolBox_array[0]=new Array("http://n.yam.com/i/t121a.gif","http://n.yam.com/i/t122a.gif");
	toolBox_array[1]=new Array("http://n.yam.com/i/t121b.gif","http://n.yam.com/i/t122b.gif");
	toolBox_array[2]=0;

//新聞檢索
var newsSearch_array=new Array();
	newsSearch_array[0]=new Array("http://n.yam.com/i/t131a.gif","http://n.yam.com/i/t132a.gif");
	newsSearch_array[1]=new Array("http://n.yam.com/i/t131b.gif","http://n.yam.com/i/t132b.gif");
	newsSearch_array[2]=0;
	
//NEW最新 & HOT最熱

var NewHot_array=new Array();
	NewHot_array[0]=new Array("http://n.yam.com/i/d-bg-1a.gif","http://n.yam.com/i/d-bg-2a.gif");
	NewHot_array[1]=new Array("http://n.yam.com/i/d-bg-1b.gif","http://n.yam.com/i/d-bg-2b.gif");
	NewHot_array[2]=0;

//=======================/次頁摩天區頁籤/====================//
//變換字級大小
function changeFontSize(articleObj,act)
{
	articleObj=document.getElementById(articleObj);
	
	//alert (articleObj);
	//document.write(dump_props(articleObj.style,"article"));
	var expires=new Date();
	nowYear=expires.getYear();
	expires.setYear(nowYear+1);
	expires.setMonth(0);
	expires.setDate(0);
	expires.setHours(0);
	expires.setMinutes(0);
//	changeFontSize('article','max')
//	changeFontSize('article','idx3')
	switch (act)
	{
		case "idx1":
		case "idx2":
		case "idx3":
		case "idx4":
			articleObj.className=act;
		break;
		default:
			switch (articleObj.className)
			{
				case "idx1":
					if (act=="max")
						articleObj.className="idx2";
					else
						articleObj.className="idx1";
				break;
				case "idx2":
					if (act=="max")
						articleObj.className="idx3";
					else
						articleObj.className="idx1";
				break;
				case "idx3":
					if (act=="max")
						articleObj.className="idx4";
					else
						articleObj.className="idx2";
				break;
				case "idx4":
					if (act=="max")
						articleObj.className="idx4";
					else
						articleObj.className="idx3";
				break;
			}
		break;
	}
	for (i=1;i<5;i++)
	{
		if (act=="idx"+i)
		{
			document.getElementById("idx"+i).src="i/wsize0"+i+"_2.gif";
		}else{
			document.getElementById("idx"+i).src="i/wsize0"+i+".gif";
		}
	}
	document.cookie="articleFontSize="+articleObj.className+"#N;expires="+expires.toGMTString()+";path=/; domain=n.yam.com";
}

//===============使用Class做變頁籤變化
var MM_class="";
function ChangeClassNameMM(tag,chClass)
{
	if (MM_class=="")
	{
		MM_class=tag.className;
		tag.className=chClass;
	}
}
function ChangeClassNameMO(tag)
{
	tag.className=MM_class;
	MM_class="";
}

function ChangeClassTag(ObjName,SubIndex,MMClass,MOClass){
	//insert innerHTML area
	var ArticleObj=document.getElementsByName(ObjName+"Doc");
	//get array 
	var ReplaceObjArray=eval(ObjName+"Doc_array["+SubIndex+"]");
	for (i=0;i<ArticleObj.length;i++)
	{
		if (i<ReplaceObjArray.length)
			ArticleObj[i].innerHTML=ReplaceObjArray[i];
		else
			ArticleObj[i].innerHTML="";
	}
	
	for (i=0;i<document.getElementsByName(ObjName).length;i++)
	{
		if (i==SubIndex)
		{
			document.getElementsByName(ObjName)[i].className=MMClass;
			MM_class=MMClass;
		}
		else
		{
			document.getElementsByName(ObjName)[i].className=MOClass;
		}
	}
}
//=====================================================================

//********去除空白****************//

function Trim(str){
    return RTrim(LTrim(str));
}
function RTrim(str){
    var whitespace = new String(" \t\n\r");
    var s = new String(str);
    
    if (whitespace.indexOf(s.charAt(s.length-1)) != -1)
    {
        var i = s.length - 1;
        while (i >= 0 && whitespace.indexOf(s.charAt(i)) != -1){
            i--;
        }
        s = s.substring(0, i+1);
    }
    return s;
}
function LTrim(str){
    var whitespace = new String(" \t\n\r");
    var s = new String(str);
    if (whitespace.indexOf(s.charAt(0)) != -1){
        var j=0, i = s.length;
        while (j < i && whitespace.indexOf(s.charAt(j)) != -1){
            j++;
        }
        s = s.substring(j, i);
    }
    return s;
}

//*************************自動改load的變圖片大小*********** //
var photofocusChgIntervalID=new Array();
var tempImgObj= new Image;
var loadtimes=0;

//old
function setPicSize(picObjName,maxWidth,maxHeight)
{	
var imgArryObj=eval(picObjName+"_array");
var imgTagObj=document.getElementsByName(picObjName);
var len = imgTagObj.length;
/*auto_resize;*/
for (i=0;i<len;i++)
{
imgTagObj[i].src = imgArryObj[i];
imgTagObj[i].onload = function(){
if ((this.width/this.height)>1)
{this.style.width = (this.width>=maxWidth) ? maxWidth : this.width ; }
else 
{this.style.height=(this.height>=maxHeight)? maxHeight: this.height; }

//this.style.cursor = "pointer";
//this.style.border = "1px dotted red";
//this.onload = null;
}

}

/*
	for (i=0;i<imgArryObj.length;i++)
	{
		tempImgObj.src=imgArryObj[i];
		if ((tempImgObj.width/tempImgObj.height)>1)
		{
			if (tempImgObj.width>maxWidth)
				imgTagObj[i].width=maxWidth;
		}else {
			if (tempImgObj.height>maxHeight)
				imgTagObj[i].height=maxHeight;
		}
		imgTagObj[i].src=tempImgObj.src;
	}
*/
}
//new 

function setmorephoto(picObjName,maxWidth,maxHeight)
{

  var imgArryObj=eval(picObjName+"_array");
  var imgTagObj=document.getElementsByName(picObjName);
  var len = imgTagObj.length;
  /*auto_resize;*/
 
  for (i=0;i<len;i++)
  {
    imgTagObj[i].src = imgArryObj[i];
    imgTagObj[i].onload = function(){
	if (this.width > maxWidth) {
		this.width = maxWidth;
		this.height= maxHeight;
		//alert(this.width);
	}
    else 
      this.style.height= maxHeight;

    }
  }
}
//*************************自動改load的變圖片大小(單圖)*********** //

var imgNo=0;
function singleSetPicSize(picObjName,maxWidth,maxHeight)
{

    clearInterval(photofocusChgIntervalID);
	
	imgTagObj=document.getElementById(picObjName);
	tempImgObj.src=imgTagObj.src;
	if (imgTagObj.complete)
	{
			if ((tempImgObj.width/tempImgObj.height)>1)
			{
				if (tempImgObj.width>maxWidth)
					imgTagObj.width=maxWidth;
				//imgObj[i].height="";
			}else {
				if (tempImgObj.height>maxHeight)
					imgTagObj.height=maxHeight;
				//imgObj[i].width="";
			}
		clearInterval(photofocusChgIntervalID);			
	}else{	
		
		photofocusChgIntervalID = setInterval("photofocusChgInterval("+maxWidth+","+maxHeight+")", 1000);
		//photofocusChgIntervalID = setInterval("singleSetPicSize("+picObjName+","+maxWidth+","+maxHeight+")", 1000);
		//imgTagObj.style.display="none";
			if ((tempImgObj.width/tempImgObj.height)>1)
			{
				if (tempImgObj.width>maxWidth)
					imgTagObj.width=maxWidth;
				//imgObj[i].height="";
			}else {
				if (tempImgObj.height>maxHeight)
					imgTagObj.height=maxHeight;
				//imgObj[i].width="";
			}	
	}
	/*
	if (tempImgObj.complete)
	{
	   if (imgTagObj!=null){
			//document.write(dump_props(imgTagObj,'test'))
			//tempImgObj.src=imgArryObj[i];
			if ((tempImgObj.width/tempImgObj.height)>1)
			{
				if (tempImgObj.width>maxWidth)
					imgTagObj.width=maxWidth;
				//imgObj[i].height="";
			}else {
				if (tempImgObj.height>maxHeight)
					imgTagObj.height=maxHeight;
				//imgObj[i].width="";
			}
	   }		
	}else{
		photofocusChgIntervalID = setInterval("photofocusChgInterval("+maxWidth+","+maxHeight+")", 500);
		imgTagObj.width=maxWidth;
		imgTagObj.height=maxHeight;
	}
	*/
	//alert (imgTagObj.src);
    //photofocusPagerInit(picObjName);
}
function photofocusChgInterval(maxWidth,maxHeight){
	//alert (picObjName);
	//imgTagObj=document.getElementById(picObjName);
	//alert(tempImgObj.src);
	//alert (tempImgObj.complete);
	if (tempImgObj.complete)
	{
		//alert (photofocusChgIntervalID);
		//alert (maxWidth);
		//alert (maxHeight);
		
		clearInterval(photofocusChgIntervalID);
		//alert (photofocusChgIntervalID);
	//	document.write(dump_props(tempImgObj,'tempImgObj'))
		//alert(tempImgObj.width);
	   if (imgTagObj!=null){
			//document.write(dump_props(imgTagObj,'test'))
			//tempImgObj.src=imgArryObj[i];
			if ((tempImgObj.width/tempImgObj.height)>1)
			{
				if (tempImgObj.width>maxWidth)
					imgTagObj.width=maxWidth;
				//imgObj[i].height="";
			}else {
				if (tempImgObj.height>maxHeight)
					imgTagObj.height=maxHeight;
				//imgObj[i].width="";
			}
	   }
	   //alert(loadtimes);
	   //loadtimes=0;
	   /*
	}else{

		if (loadtimes<250)
		{
			loadtimes++;
			//alert (tempImgObj.complete);
			//setTimeout(singleSetPicSize(picObjName,maxWidth,maxHeight), 1000);
			return false;
		}else{
			loadtimes=0;
			imgTagObj.width=maxWidth;
			imgTagObj.height=maxHeight;
		}
		*/
		
	   	//alert (imgTagObj.src);
	}
}
//********************************************
function popuwin(win_url,width,height){
	upFile=window.open(win_url,'upload_file_window','width='+width+',height='+height+',top=10,left=10,scrollbars=yes');
	upFile.focus();
}

function showYamAD(adtype)
{
  var ts = Math.random();
  var site = (site === (void 0)) ? '' : ('&site=' + site);
  document.write('<scr' + 'ipt language="JavaScript" type="text/javascript" src="http://ads.yam.com/js?ADTYPE=' + adtype + '&' + ts + site + '"></scr' + 'ipt>');
}

function setYamLog(id)
{
  var ts = Math.random();
  document.write('<img src="http://tr.yam.com.tw/sp?ts=' + ts + '&t=' + id + '" height="0" width="0" alt="" />');
}


//****
//各頻道新聞源切換的javascript
//*****

function moveNewsSoure()
{
	tagObj=document.getElementsByName("newsSource");
	for (i=0;i<tagObj.length;i++)
	{
		tagObj[i].className="moreEnt01";
	}
	listObj=document.getElementsByName("newsSourceDoc");
	for (i=0;i<listObj.length;i++)
	{
		//alert(muchMoreNewsDoc_array[i]);
		if (muchMoreNewsDoc_array[i]!=null)
			listObj[i].innerHTML=muchMoreNewsDoc_array[i];
		else
			listObj[i].innerHTML="";
	}
	
	//alert(listObj.length);
}

/**
 * FlashObject v1.3d: Flash detection and embed - http://blog.deconcept.com/flashobject/
 *
 * FlashObject is (c) 2006 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof com=="undefined"){var com=new Object();}
if(typeof com.deconcept=="undefined"){com.deconcept=new Object();}
if(typeof com.deconcept.util=="undefined"){com.deconcept.util=new Object();}
if(typeof com.deconcept.FlashObjectUtil=="undefined"){com.deconcept.FlashObjectUtil=new Object();}
com.deconcept.FlashObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){
if(!document.createElement||!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"detectflash";
this.skipDetect=com.deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
this.useExpressInstall=_7;
if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new com.deconcept.PlayerVersion(_5.toString().split(".")));}
this.installedVer=com.deconcept.FlashObjectUtil.getPlayerVersion(this.getAttribute("version"),_7);
if(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";
this.addParam("quality",q);
var _d=(_9)?_9:window.location;
this.setAttribute("xiRedirectUrl",_d);
this.setAttribute("redirectUrl","");
if(_a){this.setAttribute("redirectUrl",_a);}
};
com.deconcept.FlashObject.prototype={setAttribute:function(_e,_f){
this.attributes[_e]=_f;
},getAttribute:function(_10){
return this.attributes[_10];
},addParam:function(_11,_12){
this.params[_11]=_12;
},getParams:function(){
return this.params;
},addVariable:function(_13,_14){
this.variables[_13]=_14;
},getVariable:function(_15){
return this.variables[_15];
},getVariables:function(){
return this.variables;
},createParamTag:function(n,v){
var p=document.createElement("param");
p.setAttribute("name",n);
p.setAttribute("value",v);
return p;
},getVariablePairs:function(){
var _19=new Array();
var key;
var _1b=this.getVariables();
for(key in _1b){_19.push(key+"="+_1b[key]);}
return _19;
},getFlashHTML:function(){
var _1c="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","PlugIn");
}
_1c="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_1c+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1d=this.getParams();
for(var key in _1d){_1c+=[key]+"=\""+_1d[key]+"\" ";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_1c+="flashvars=\""+_1f+"\"";}
_1c+="/>";
}else{
if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_1c="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_1c+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _20=this.getParams();
for(var key in _20){_1c+="<param name=\""+key+"\" value=\""+_20[key]+"\" />";}
var _22=this.getVariablePairs().join("&");
if(_22.length>0){_1c+="<param name=\"flashvars\" value=\""+_22+"\" />";
}_1c+="</object>";}
return _1c;
},write:function(_23){
if(this.useExpressInstall){
var _24=new com.deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_24)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title);}
}else{this.setAttribute("doExpressInstall",false);}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
var n=(typeof _23=="string")?document.getElementById(_23):_23;
n.innerHTML=this.getFlashHTML();
}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}}};
com.deconcept.FlashObjectUtil.getPlayerVersion=function(_26,_27){
var _28=new com.deconcept.PlayerVersion(0,0,0);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){_28=new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}
}else{
try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
for(var i=3;axo!=null;i++){
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
_28=new com.deconcept.PlayerVersion([i,0,0]);}}
catch(e){}
if(_26&&_28.major>_26.major){return _28;}
if(!_26||((_26.minor!=0||_26.rev!=0)&&_28.major==_26.major)||_28.major!=6||_27){
try{
_28=new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
}catch(e){}}}
return _28;
};
com.deconcept.PlayerVersion=function(_2c){
this.major=parseInt(_2c[0])||0;
this.minor=parseInt(_2c[1])||0;
this.rev=parseInt(_2c[2])||0;
};
com.deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){return false;}
return true;
};
com.deconcept.util={getRequestParameter:function(_2e){
var q=document.location.search||document.location.hash;
if(q){var _30=q.indexOf(_2e+"=");
var _31=(q.indexOf("&",_30)>-1)?q.indexOf("&",_30):q.length;
if(q.length>1&&_30>-1){
return q.substring(q.indexOf("=",_30)+1,_31);}}return "";
},removeChildren:function(n){
while(n.hasChildNodes()){
n.removeChild(n.firstChild);}}};
if(Array.prototype.push==null){
Array.prototype.push=function(_33){
this[this.length]=_33;
return this.length;};}
var getQueryParamValue=com.deconcept.util.getRequestParameter;
var FlashObject=com.deconcept.FlashObject;

