// Copyright (c) 2007 eTVLand

/*-----====={  Player Button Rollover - Generated by Dreamweaver  }=====-----=====-----=====-----=====---*/

<!--
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_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_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];}
}
//-->

/*-----====={  Player Button Rollover - Generated by Dreamweaver  }=====-----=====-----=====-----=====-----*/




















/*-----====={  Player Button Rollover - Generated by Dreamweaver CS4 - Used in index.php  }=====-----=====-----=====-----=====---*/

<!--
function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}
//-->

/*-----====={  Player Button Rollover - Generated by Dreamweaver CS4 - Used in index.php  }=====-----=====-----=====-----=====-----*/




















/*-----====={  Pop-Up Window - Generated by Dreamweaver  }=====-----=====-----=====-----=====---*/

/*

ADD THE FOLLOWING TO THE DOCUMENT BODY:

<a href="#t" onclick="popUpWindow('channels/xxxx.htm',0,0,720,478);return false" onmouseover="Tip('xxxx :: 377K');" class="FooterLeft"><b>::</b> xxxx*</a> 

*/

<!--

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

//-->

/*-----====={  Pop-Up Window - Generated by Dreamweaver  }=====-----=====-----=====-----=====-----*/




















/*-----====={  Drop Down/ Overlapping Content - Version 1: No Animation  }=====-----=====-----=====-----=====---*/
/*
<!--
*/
/***********************************************
* Drop Down/ Overlapping Content- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
/***********************************************
NOTE:
THE HTML LOOKS LIKE THIS:
-----
LINK:
<a href="javascript:void(0)" onClick="return overlay(this, 'subcontent', 'left')" class="OverlappingContent" valign="middle">link</a>
-----
CONTENT:
<DIV id="subcontent" style="position:absolute; display:none; border: 2px solid black; background: #444444 url(http://www.etvland.com/images/hdr_bg2.gif) repeat-x center; width: 360px; height: 150px; padding-top: 10px; padding-bottom: 10px; z-index: 100;">
<p>content goes here</p>
</DIV>
-----
CLOSE:
<a href="#" onClick="overlayclose('subcontent'); return false" >close</a>
***********************************************/

/*
function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function overlay(curobj, subobjstr, opt_position){
if (document.getElementById){
var subobj=document.getElementById(subobjstr)
subobj.style.display=(subobj.style.display!="block")? "block" : "none"
var xpos=getposOffset(curobj, "left")+((typeof opt_position!="undefined" && opt_position.indexOf("right")!=-1)? -(subobj.offsetWidth-curobj.offsetWidth) : 0) 
var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)? curobj.offsetHeight : 0)
subobj.style.left=xpos+"px"
subobj.style.top=ypos+"px"
return false
}
else
return true
}

function overlayclose(subobj){
document.getElementById(subobj).style.display="none"
}
//-->
*/
/*-----====={  Drop Down/ Overlapping Content - Version 1: No Animation  }=====-----=====-----=====-----=====-----*/




















/*-----====={  Drop Down/ Overlapping Content - Version 2: Animation  }=====-----=====-----=====-----=====---*/

<!--

/***********************************************
* Drop Down/ Overlapping Content- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/dynamicindex5/overlapcontent.htm for full source code
***********************************************/

/***********************************************
More Information:

The code shows the required convention in setting up a drop down content on your page. It consists of three parts:

    * The anchor element (an arbitrary element that will show the drop down content onMouseover).
    * The Drop Down content element.
    * Calling the initialization script at the very end to tie things together.

<!--Anchor Element -->
<b><a href="search.htm" id="searchlink" rel="subcontent">Search DD</a></b><br />


<!--Drop Down content element -->
<DIV id="subcontent" style="position:absolute; visibility: hidden; border: 9px solid orange; background-color: white; width: 300px; padding: 8px;">

<p><b>Search Dynamic Drive:</b></p>
<form method="get" action="http://search.freefind.com/find.html" id="topform">
<input name="query" maxlength="255" style="width: 150px" id="topsearchbox" alt="Search" />
<input value="Search" type="submit" /
</form>

<div align="right"><a href="http://www.dynamicdrive.com">Dynamic Drive</a></div>

</DIV>


<script type="text/javascript">
//Call dropdowncontent.init("anchorID", "positionString", glideduration, "revealBehavior") at the end of the page:
dropdowncontent.init("searchlink", "right-bottom", 500, 'mouseover')
</script>


If you have multiple Drop Down content instances on the page, call this function multiple times for each instance. The function accepts 4 parameters:

   1. The ID of the anchor element, typically a link with a rel attribute pointing to the ID of the Drop Down DIV.
   2. The position of the Drop Down DIV relative to the anchor link: "left-bottom", "right-bottom", "left-top", or "right-top")
   3. The third is the duration of the reveal animation in milliseconds (ie: 500= 1/2 second). Tip: If you wish to essentially disable the animation, set it to a very small integer, such as 10.
   4. How the Drop Down DIV should be revealed- "click" or "mouseover" of the anchor link.

   
--------------------------------------------------------------------------X
   
   
Manually hiding the Drop Down DIV:

By default the Drop Down DIV will automatically hide itself when the user rolls his mouse over then out of it. Since this behaviour is configurable (see bottom of page), depending on your setup, you may need to include some way for the user to manually dismiss the Drop Down DIV. This can be done by calling dropdowncontent.hidediv("id_of_div"), and passing in the ID of the Drop Down DIV. For example:

<a href="javascript:dropdowncontent.hidediv('subcontent')">Hide this DIV manually</a>


--------------------------------------------------------------------------X


Dynamically populating a Drop Down content using an external file (Ajax):

A drop down content can be dynamically populated with contents from an external file on the same domain, instead of defining it inline on the shown page. You still need to define the HTML for the drop down container itself on your page, though it will simply be an empty DIV. Then, use the optional "rev" attribute inside the anchor link to specify the path to the external page you wish to load into its corresponding drop down content. Here's an example, with the code in red highlighting the differences compared to the previous example above:

<!--Anchor Element with drop down content dynamically populated via Ajax-->
<b><a href="search.htm" id="searchlink" rel="subcontent" rev="external.htm">Search DD</a></b><br />


<!--Drop Down content element -->
<DIV id="subcontent" style="position:absolute; visibility: hidden; border: 9px solid orange; background-color: white; width: 300px; padding: 8px;">

//EMPTY DIV!!

</DIV>


<script type="text/javascript">
//Call dropdowncontent.init("anchorID", "positionString", glideduration, "revealBehavior") at the end of the page:
dropdowncontent.init("searchlink", "right-bottom", 500, "click")
</script>

Make sure "rev" points to an external file on your domain, as due to security reasons offsite domains aren't allowed.
***********************************************/














//Drop Down/ Overlapping Content: http://www.dynamicdrive.com
//**Updated: Dec 19th, 07': Added ability to dynamically populate a Drop Down content using an external file (Ajax feature)
//**Updated: Feb 29th, 08':
				//1) Added ability to reveal drop down content via "click" of anchor link (instead of default "mouseover")
				//2) Added ability to disable drop down content from auto hiding when mouse rolls out of it
				//3) Added hidediv(id) public function to directly hide drop down div dynamically

//**Updated: Sept 11th, 08': Fixed bug whereby drop down content isn't revealed onClick of anchor in Safari/ Google Chrome

var dropdowncontent={
	disableanchorlink: true, //when user clicks on anchor link, should link itself be disabled (always true if "revealbehavior" above set to "click")
 hidedivmouseout: [true, 6000000], //Set hiding behavior within Drop Down DIV itself: [hide_div_onmouseover?, miliseconds_before_hiding]
	ajaxloadingmsg: "Loading content. Please wait...", //HTML to show while ajax page is being feched, if applicable
	ajaxbustcache: true, //Bust cache when fetching Ajax pages?

	getposOffset:function(what, offsettype){
		return (what.offsetParent)? what[offsettype]+this.getposOffset(what.offsetParent, offsettype) : what[offsettype]
	},

	isContained:function(m, e){
		var e=window.event || e
		var c=e.relatedTarget || ((e.type=="mouseover")? e.fromElement : e.toElement)
		while (c && c!=m)try {c=c.parentNode} catch(e){c=m}
		if (c==m)
			return true
		else
			return false
	},

	show:function(anchorobj, subobj, e){
		if (!this.isContained(anchorobj, e) || (e && e.type=="click")){
			var e=window.event || e
			if (e.type=="click" && subobj.style.visibility=="visible"){
				subobj.style.visibility="hidden"
				return
			}
			var horizontaloffset=(subobj.dropposition[0]=="left")? -(subobj.offsetWidth-anchorobj.offsetWidth) : 0 //calculate user added horizontal offset
			var verticaloffset=(subobj.dropposition[1]=="top")? -subobj.offsetHeight : anchorobj.offsetHeight //calculate user added vertical offset
			subobj.style.left=this.getposOffset(anchorobj, "offsetLeft") + horizontaloffset + "px"
			subobj.style.top=this.getposOffset(anchorobj, "offsetTop")+verticaloffset+"px"
			subobj.style.clip=(subobj.dropposition[1]=="top")? "rect(auto auto auto 0)" : "rect(0 auto 0 0)" //hide drop down box initially via clipping
			subobj.style.visibility="visible"
			subobj.startTime=new Date().getTime()
			subobj.contentheight=parseInt(subobj.offsetHeight)
			if (typeof window["hidetimer_"+subobj.id]!="undefined") //clear timer that hides drop down box?
				clearTimeout(window["hidetimer_"+subobj.id])
			this.slideengine(subobj, (subobj.dropposition[1]=="top")? "up" : "down")
		}
	},

	curveincrement:function(percent){
		return (1-Math.cos(percent*Math.PI)) / 2 //return cos curve based value from a percentage input
	},

	slideengine:function(obj, direction){
		var elapsed=new Date().getTime()-obj.startTime //get time animation has run
		if (elapsed<obj.glidetime){ //if time run is less than specified length
			var distancepercent=(direction=="down")? this.curveincrement(elapsed/obj.glidetime) : 1-this.curveincrement(elapsed/obj.glidetime)
			var currentclip=(distancepercent*obj.contentheight)+"px"
			obj.style.clip=(direction=="down")? "rect(0 auto "+currentclip+" 0)" : "rect("+currentclip+" auto auto 0)"
			window["glidetimer_"+obj.id]=setTimeout(function(){dropdowncontent.slideengine(obj, direction)}, 10)
		}
		else{ //if animation finished
			obj.style.clip="rect(0 auto auto 0)"
		}
	},

	hide:function(activeobj, subobj, e){
		if (!dropdowncontent.isContained(activeobj, e)){
			window["hidetimer_"+subobj.id]=setTimeout(function(){
				subobj.style.visibility="hidden"
				subobj.style.left=subobj.style.top=0
				clearTimeout(window["glidetimer_"+subobj.id])
			}, dropdowncontent.hidedivmouseout[1])
		}
	},

	hidediv:function(subobjid){
		document.getElementById(subobjid).style.visibility="hidden"
	},

	ajaxconnect:function(pageurl, divId){
		var page_request = false
		var bustcacheparameter=""
		if (window.XMLHttpRequest) // if Mozilla, IE7, Safari etc
			page_request = new XMLHttpRequest()
		else if (window.ActiveXObject){ // if IE6 or below
			try {
			page_request = new ActiveXObject("Msxml2.XMLHTTP")
			} 
			catch (e){
				try{
				page_request = new ActiveXObject("Microsoft.XMLHTTP")
				}
				catch (e){}
			}
		}
		else
			return false
		document.getElementById(divId).innerHTML=this.ajaxloadingmsg //Display "fetching page message"
		page_request.onreadystatechange=function(){dropdowncontent.loadpage(page_request, divId)}
		if (this.ajaxbustcache) //if bust caching of external page
			bustcacheparameter=(pageurl.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime()
		page_request.open('GET', pageurl+bustcacheparameter, true)
		page_request.send(null)
	},

	loadpage:function(page_request, divId){
		if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)){
			document.getElementById(divId).innerHTML=page_request.responseText
		}
	},

 init:function(anchorid, pos, glidetime, revealbehavior){
		var anchorobj=document.getElementById(anchorid)
		var subobj=document.getElementById(anchorobj.getAttribute("rel"))
		var subobjsource=anchorobj.getAttribute("rev")
		if (subobjsource!=null && subobjsource!="")
			this.ajaxconnect(subobjsource, anchorobj.getAttribute("rel"))
		subobj.dropposition=pos.split("-")
		subobj.glidetime=glidetime || 1000
		subobj.style.left=subobj.style.top=0
		if (typeof revealbehavior=="undefined" || revealbehavior=="mouseover"){
			anchorobj.onmouseover=function(e){dropdowncontent.show(this, subobj, e)}
			anchorobj.onmouseout=function(e){dropdowncontent.hide(subobj, subobj, e)}
			if (this.disableanchorlink) anchorobj.onclick=function(){return false}
		}
		else
			anchorobj.onclick=function(e){dropdowncontent.show(this, subobj, e); return false}
		if (this.hidedivmouseout[0]==true) //hide drop down DIV when mouse rolls out of it?
			subobj.onmouseout=function(e){dropdowncontent.hide(this, subobj, e)}
	}
}
//-->

/*-----====={  Drop Down/ Overlapping Content - Version 2: Animation  }=====-----=====-----=====-----=====-----*/




















/*-----====={  Events and event handlers: Hide Status Bar Message  }=====-----=====-----=====-----=====--*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x


	function hidestatus(){
	  window.status=''
	    return true
	}
	
	
	if (document.layers)
	  document.addEventListener(Event.MOUSEOVER | Event.MOUSEOUT)
	  document.onmouseover=hidestatus
	  document.onmouseout=hidestatus


	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  Events and event handlers: Hide Status Bar Message  }=====-----=====-----=====-----=====----*/




















/*-----====={  Add to Favorites - IE only  }=====-----=====-----=====-----===*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x

/***********************************************************************	Previous Bookmark Script

	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {	 
	  var url="http://www.eTVLand.com/";	 
	    var title="eTVLand.com - Your Very Own Internet TV";	 
	}	 

	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {	 
	  var eTV_Login_url="http://www.etvland.com/eTV_Login.php";	 
	    var eTV_Login_title="eTVLand.com - My eTV Login";	 
	}	 
***********************************************************************/


/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  Add to Favorites  }=====-----=====-----=====-----=====*/




















/*-----====={  Change Window Size on Keyboard Click - IE only  }=====-----=====-----=====-----=====-----==*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x  

/******************************************************
          L   A   T   E   R       R   E   M   O   V   E   D
   "DOES NOT ADD FUNCTIONALITY TO THE PAGE"
******************************************************/
/*

	function movepage()
	{
	
	
	var direction =event.keyCode
	  switch(direction){
	
	
	case 39:
	  window.moveTo(0, 0);
	  window.resizeBy(10, 0);
	  window.resizeBy(0, 0);
	  	  break
	
	
	case 37:
	  window.moveTo(0, 0);
	  window.resizeBy(-10, 0);
	  window.resizeBy(0, 0);
	  	  break
	
	
	case 38:
	  window.moveTo(0, 0);
	  window.resizeBy(0, 0);
	  window.resizeBy(0, -10);
	  	  break
	
	
	case 40:
	  window.moveTo(0, 0);
	  window.moveBy(0, 0);
	  window.resizeBy(0, 10);
	  	  break
	
	
	default:
	  break
	
	
	}
	}

*/
	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  Change Window Size on Keyboard Click  }=====-----=====-----=====-----=====-----====*/




















/*-----====={  eTVLand Statusbar - IE only  }=====-----=====--*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x

/* --------- BeginEnd animated statubar --------- */
tempo = 50;
chars = 10;
texto = "<O*;-Don't forget to bookmark us! Press CTRL-D";
wtexto = new Array(33);
wtexto[0] = texto;
blnk = "                                              ";
for (i = 1; i < 32; i++) {
b = blnk.substring(0, i);
wtexto[i] = "";
for (j = 0; j < texto.length; j++) wtexto[i] = wtexto[i] + texto.charAt(j) + b;
}
function animastatus() {
if (chars > -1) str = wtexto[chars]; 
else str = wtexto[0];
if (chars-- < -40) chars = 31;
status = str;
clearTimeout(tempo);
tempo = setTimeout("animastatus()", 60);
}
animastatus()
/* --------- End animated statubar --------- */

	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  eTVLand Titlebar or Statusbar Date & Time Clock Display  }=====-----=====----*/




















/*-----====={  eTVLand Message - Works with following tag: <a href="#t" onclick="javascript:msg();"></a>  }=====-----=====--*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x

function msg(){
alert('Coming Soon..');
}




/* Browser Detection >> OnClick Display  Warning for Internet Explorer Users - Created by Jean A. Boveri */

/******************************************************
The variable browser in the example above holds the name of the browser, 
i.e. "Netscape" or "Microsoft Internet Explorer".

The appVersion property in the example above returns a string that contains 
much more information than just the version number, 
but for now we are only interested in the version number. 
To pull the version number out of the string we are using a function called parseFloat(), 
which pulls the first thing that looks like a decimal number out of a string and returns it.

IMPORTANT! 
The version number is WRONG in IE 5.0 or later! 
Microsoft starts the appVersion string with the number 4.0. in IE 5.0 and IE 6.0!!! 
Why did they do that??? 
However, JavaScript is the same in IE6, IE5 and IE4, 
so for most scripts it is ok.

This function can be called with <body onload="detectBrowser()">
or the OnClick event handler.
******************************************************/

function message()
{
var browser=navigator.appName;
var b_version=navigator.appVersion;
var version=parseFloat(b_version);
if ((browser=="Microsoft Internet Explorer") /* Can also add:		browser=="Netscape"||	*/
&& (version>=4))
{
		var answerOkay = alert("Afzel Moshahede Mozilla Firefox \n\n Behtarin Moshahede ba Mozilla Firefox \n\n Best Viewed with Mozilla Firefox \n\n Mieux Vu avec Mozilla Firefox \n\n Se Ve Mejor con Mozilla Firefox \n\n Beste Ansicht mit Mozilla Firefox")
		if (answerOkay)
		{
		return true;
		}
}
else
{
		return false;
}
}

	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  eTVLand Message   }=====-----=====----*/




















/*-----====={ Ajax Tab Content Rss Newsticker  }=====-----=====--*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x


/*
Begin TabContent
*/

<!-- Begin 
//** Tab Content script v2.0- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
//** Updated Oct 7th, 07 to version 2.0. Contains numerous improvements:
//   -Added Auto Mode: Script auto rotates the tabs based on an interval, until a tab is explicitly selected
//   -Ability to expand/contract arbitrary DIVs on the page as the tabbed content is expanded/ contracted
//   -Ability to dynamically select a tab either based on its position within its peers, or its ID attribute (give the target tab one 1st)
//   -Ability to set where the CSS classname "selected" get assigned- either to the target tab's link ("A"), or its parent container 

////NO NEED TO EDIT BELOW////////////////////////

function ddtabcontent(tabinterfaceid){
	this.tabinterfaceid=tabinterfaceid //ID of Tab Menu main container
	this.tabs=document.getElementById(tabinterfaceid).getElementsByTagName("a") //Get all tab links within container
	this.enabletabpersistence=true
	this.hottabspositions=[] //Array to store position of tabs that have a "rel" attr defined, relative to all tab links, within container
	this.subcontentids=[] //Array to store ids of the sub contents ("rel" attr values)
	this.revcontentids=[] //Array to store ids of arbitrary contents to expand/contact as well ("rev" attr values)
	this.selectedClassTarget="link" //keyword to indicate which target element to assign "selected" CSS class ("linkparent" or "link")
}

ddtabcontent.getCookie=function(Name){ 
	var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
	if (document.cookie.match(re)) //if cookie found
		return document.cookie.match(re)[0].split("=")[1] //return its value
	return ""
}

ddtabcontent.setCookie=function(name, value){
	document.cookie = name+"="+value+";path=/" //cookie value is domain wide (path=/)
}

ddtabcontent.prototype={

	expandit:function(tabid_or_position){ //PUBLIC function to select a tab either by its ID or position(int) within its peers
		this.cancelautorun() //stop auto cycling of tabs (if running)
		var tabref=""
		try{
			if (typeof tabid_or_position=="string" && document.getElementById(tabid_or_position).getAttribute("rel")) //if specified tab contains "rel" attr
				tabref=document.getElementById(tabid_or_position)
			else if (parseInt(tabid_or_position)!=NaN && this.tabs[tabid_or_position].getAttribute("rel")) //if specified tab contains "rel" attr
				tabref=this.tabs[tabid_or_position]
		}
		catch(err){alert("Invalid Tab ID or position entered!")}
		if (tabref!="") //if a valid tab is found based on function parameter
			this.expandtab(tabref) //expand this tab
	},

	setpersist:function(bool){ //PUBLIC function to toggle persistence feature
			this.enabletabpersistence=bool
	},

	setselectedClassTarget:function(objstr){ //PUBLIC function to set which target element to assign "selected" CSS class ("linkparent" or "link")
		this.selectedClassTarget=objstr || "link"
	},

	getselectedClassTarget:function(tabref){ //Returns target element to assign "selected" CSS class to
		return (this.selectedClassTarget==("linkparent".toLowerCase()))? tabref.parentNode : tabref
	},

	expandtab:function(tabref){
		var subcontentid=tabref.getAttribute("rel") //Get id of subcontent to expand
		//Get "rev" attr as a string of IDs in the format ",john,george,trey,etc," to easily search through
		var associatedrevids=(tabref.getAttribute("rev"))? ","+tabref.getAttribute("rev").replace(/\s+/, "")+"," : ""
		this.expandsubcontent(subcontentid)
		this.expandrevcontent(associatedrevids)
		for (var i=0; i<this.tabs.length; i++){ //Loop through all tabs, and assign only the selected tab the CSS class "selected"
			this.getselectedClassTarget(this.tabs[i]).className=(this.tabs[i].getAttribute("rel")==subcontentid)? "selected" : ""
		}
		if (this.enabletabpersistence) //if persistence enabled, save selected tab position(int) relative to its peers
			ddtabcontent.setCookie(this.tabinterfaceid, tabref.tabposition)
	},

	expandsubcontent:function(subcontentid){
		for (var i=0; i<this.subcontentids.length; i++){
			var subcontent=document.getElementById(this.subcontentids[i]) //cache current subcontent obj (in for loop)
			subcontent.style.display=(subcontent.id==subcontentid)? "block" : "none" //"show" or hide sub content based on matching id attr value
		}
	},


	expandrevcontent:function(associatedrevids){
		var allrevids=this.revcontentids
		for (var i=0; i<allrevids.length; i++){ //Loop through rev attributes for all tabs in this tab interface
			//if any values stored within associatedrevids matches one within allrevids, expand that DIV, otherwise, contract it
			document.getElementById(allrevids[i]).style.display=(associatedrevids.indexOf(","+allrevids[i]+",")!=-1)? "block" : "none"
		}
	},

	autorun:function(){ //function to auto cycle through and select tabs based on a set interval
		var currentTabIndex=this.automode_currentTabIndex //index within this.hottabspositions to begin
		var hottabspositions=this.hottabspositions //Array containing position numbers of "hot" tabs (those with a "rel" attr)
		this.expandtab(this.tabs[hottabspositions[currentTabIndex]])
		this.automode_currentTabIndex=(currentTabIndex<hottabspositions.length-1)? currentTabIndex+1 : 0 //increment currentTabIndex
	},

	cancelautorun:function(){
		if (typeof this.autoruntimer!="undefined")
			clearInterval(this.autoruntimer)
	},

	init:function(automodeperiod){
		var persistedtab=ddtabcontent.getCookie(this.tabinterfaceid) //get position of persisted tab (applicable if persistence is enabled)
		var persisterror=true //Bool variable to check whether persisted tab position is valid (can become invalid if user has modified tab structure)
		this.automodeperiod=automodeperiod || 0
		for (var i=0; i<this.tabs.length; i++){
			this.tabs[i].tabposition=i //remember position of tab relative to its peers
			if (this.tabs[i].getAttribute("rel")){
				var tabinstance=this
				this.hottabspositions[this.hottabspositions.length]=i //store position of "hot" tab ("rel" attr defined) relative to its peers
				this.subcontentids[this.subcontentids.length]=this.tabs[i].getAttribute("rel") //store id of sub content ("rel" attr value)
				this.tabs[i].onmouseover=function(){ /* Change this line for ONCLICK or ONMOUSEOVER as a way of Showing or Hiding Drag & Drop Slide Menu */
					tabinstance.expandtab(this)
					tabinstance.cancelautorun() //stop auto cycling of tabs (if running)
					return false
				}
				if (this.tabs[i].getAttribute("rev")){ //if "rev" attr defined, store each value within "rev" as an array element
					this.revcontentids=this.revcontentids.concat(this.tabs[i].getAttribute("rev").split(/\s*,\s*/))
				}
				if (this.enabletabpersistence && parseInt(persistedtab)==i || !this.enabletabpersistence && this.getselectedClassTarget(this.tabs[i]).className=="selected"){
					this.expandtab(this.tabs[i]) //expand current tab if it's the persisted tab, or if persist=off, carries the "selected" CSS class
					persisterror=false //Persisted tab (if applicable) was found, so set "persisterror" to false
					//If currently selected tab's index(i) is greater than 0, this means its not the 1st tab, so set the tab to begin in automode to 1st tab:
					this.automode_currentTabIndex=(i>0)? 0 : 1
				}
			}
		} //END for loop
		if (persisterror) //if an error has occured while trying to retrieve persisted tab (based on its position within its peers)
			this.expandtab(this.tabs[this.hottabspositions[0]]) //Just select first tab that contains a "rel" attr
		if (parseInt(this.automodeperiod)>500 && this.hottabspositions.length>1){
			this.automode_currentTabIndex=this.automode_currentTabIndex || 0
			this.autoruntimer=setInterval(function(){tabinstance.autorun()}, this.automodeperiod)
		}
	} //END int() function

} //END Prototype assignment
// End -->


	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  Ajax Tab Content Rss Newsticker   }=====-----=====----*/




















/*-----====={ Toggle Button OnClick  }=====-----=====--*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x


/******************************************
SCRIPT CREATED BY JEAN A. BOVERI
1:58 PM 3/3/2008
*******************************************/

/* ************************* BEGIN STYLE 2 - TOGGLE ******************************** */
/* ************************* REQUIRED <BODY> TAGS:
hideShowRemote();
hideShowIt();
The following tags are echoed by php on the DSL and Dialup page:
  - var hideshowID
  - var hideshowObject
  - var hideshowMinMaxOne
  - var hideshowMinMaxTwo
  - var hideshowRemoteOne
  - var hideshowRemoteTwo
 ******************************** */

function hideShow(){
var toggleRemote = "<span id='MaxMin'>"+hideshowMinMaxOne+"</span><a id='SwitchThis' class='hideShow' onclick='toggle(Btn);'>"+hideshowObject+"</a><a id='SwitchImage' class='hideShow' onclick='toggle(Btn);'>"+hideshowRemoteOne+"</a>";	/* Change this line for ONCLICK or ONMOUSEOVER or ONMOUSEOUT as a way of Showing or Hiding Drag & Drop Slide Menu */
document.write(toggleRemote);
}

var Btn=1;
function toggle(Button){

	if (Button==1){
		document.getElementById(hideshowID).style.display="none";
		document.getElementById("SwitchThis").innerHTML=hideshowObject;
		document.getElementById("MaxMin").innerHTML=hideshowMinMaxTwo;
		document.getElementById("SwitchImage").innerHTML=hideshowRemoteTwo;
		Btn=0;
	}

	if (Button==0){
		document.getElementById(hideshowID).style.display="block";
		document.getElementById("SwitchThis").innerHTML=hideshowObject;
		document.getElementById("MaxMin").innerHTML=hideshowMinMaxOne;
		document.getElementById("SwitchImage").innerHTML=hideshowRemoteOne;
		Btn=1;
	}

}

//This function will toggle any tag with through its id and an assicaited image through its name
//The first argument is the ID of what needs its visibility toggled
//The second argument is the NAME of the image that needs to be toggled to show the state of the toggle
//Display should be set to block inside runOnce function for the first onclick
var count1=true, count2=true, count3=true, count4=true;
function toggleThisOnce(Me){
  if (count1==true && Me=="MostViewedChannels")
  {
  document.getElementById(Me).style.display='block';
  count1=false;
  }
  else if (count2==true && Me=="AllChannelsBrowser")
  {
  document.getElementById(Me).style.display='block';
  count2=false;
  }
  else if (count3==true && Me=="QuickChannelSearch")
  {
  document.getElementById(Me).style.display='block';
  count3=false;
  }
  else if (count4==true && Me=="ChannelsBeingWatched")
  {
  document.getElementById(Me).style.display='block';
  count4=false;
  }
}
function toggleThis(Me,Sign){
var toggleMe=document.getElementById(Me);
 if (toggleMe!=null)
 {
 toggleMe.style.display=(toggleMe.style.display=='block')? 'none' : 'block';
 }

  if (Sign) //The second argument is optional
  {
  var toggleSign=document.images[Sign];
  toggleSign.src=(toggleSign.src=='http://www.etvland.com/images/collapseh.gif')? 'http://www.etvland.com/images/expandh.gif' : 'http://www.etvland.com/images/collapseh.gif';
  }

}

/* ************************* END STYLE 2 - TOGGLE ******************************** */
// End -->


	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  Toggle Button OnClick   }=====-----=====----*/




















/*-----====={ Cross-Browser Opacity  }=====-----=====--*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x


/******************************************
Source: http://www.quirksmode.org/js/opacity.html
NOTE:
opacity is for Mozilla and Safari, filter for Explorer. value ranges from 0 to 10.
Opacity can be set for DIV,TABLE,TD,H4,P,IMG tags for Explorer6, Explorer 7beta3, firefox1.5,safari1.3, and Opera9.
Opacity for TBODY and TR can only be set for firefox1.5 only.
*******************************************/
function setOpacity(testObj,value) {
	testObj.style.opacity = value/10;
	testObj.style.filter = 'alpha(opacity=' + value*10 + ')';
}

	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  Cross-Browser Opacity   }=====-----=====----*/




















/*-----====={ Convert LowerCase To UpperCase While Typing  }=====-----=====--*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x


/******************************************
Source: http://www.bigresource.com/JAVASCRIPTS-Convert-LowerCase-to-UpperCase-while-Typing-2Bhedz2j.html#
HTML:
<input type="text" onkeypress="return pulsar(event,this)" />
*******************************************/
function pulsar(e,obj) {
tecla = (document.all) ? e.keyCode : e.which;
//alert(tecla);
if (tecla!="8" && tecla!="0"){
obj.value += String.fromCharCode(tecla).toUpperCase();
return false;
}else{
return true;
}
}

	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  Convert LowerCase To UpperCase While Typing   }=====-----=====----*/




















/*-----====={ Convert To First-Letter-Uppercase  }=====-----=====--*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x


/******************************************
Source: http://www.bestdownloadsites.com/first-letter-uppercase
HTML:
<form name=form>
<input type=text name=box value="type in here!">
<input type=button value="Convert" onClick="javascript:changeCase(this.form.box)">
</form>
*******************************************/
<!-- Original:  William Humphreys (billy@technical-solutions.co.uk) -->

<!-- Begin
function changeCase(frmObj) {
var index;
var tmpStr;
var tmpChar;
var preString;
var postString;
var strlen;
tmpStr = frmObj.value.toLowerCase();
strLen = tmpStr.length;
if (strLen > 0)  {
for (index = 0; index < strLen; index++)  {
if (index == 0)  {
tmpChar = tmpStr.substring(0,1).toUpperCase();
postString = tmpStr.substring(1,strLen);
tmpStr = tmpChar + postString;
}
else {
tmpChar = tmpStr.substring(index, index+1);
if (tmpChar == " " && index < (strLen-1))  {
tmpChar = tmpStr.substring(index+1, index+2).toUpperCase();
preString = tmpStr.substring(0, index+1);
postString = tmpStr.substring(index+2,strLen);
tmpStr = preString + tmpChar + postString;
         }
      }
   }
}
frmObj.value = tmpStr;
}
//  End -->

	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  Convert To First-Letter-Uppercase   }=====-----=====----*/





















/*-----====={ Color Functions  }=====-----=====--*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x

/******************************************
Created by Jean A. Boveri On 8:20 PM 10/18/2009
HTML:
onMouseover="color(this.style,'whit\');" onMouseout="color(this.style,'#86E160');"
*******************************************/

var color = function (elementStyle,colorCode)
{
  elementStyle.color=colorCode;
};

	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  Convert To First-Letter-Uppercase   }=====-----=====----*/





















/*-----====={ onclick div bgcolor change  }=====-----=====--*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x

/******************************************
Source: http://www.dynamicdrive.com/forums/showthread.php?t=22234
HTML to call this function: onclick="highlightLink(this);"
*******************************************/

var highlightLink = function () {
    var normalColor="#00AFF0";
    var Highlightedcolor="#00B1FC"; /*Was previously: "#0058EE";*/
        var active = null, colour = Highlightedcolor;
        if (this.attachEvent) this.attachEvent('onunload', function () {
            active = null;
        });
        return function (element) {
            if ((active != element) && element.style) {
                if (active) active.style.backgroundColor = normalColor;
                element.style.backgroundColor = colour;
                active = element;
            }
        };
    }();
	

	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  onclick div bgcolor change   }=====-----=====----*/





















/*-----====={ width and height of brower -> onclick go to url -> MouseOver MouseOut MouseDown  }=====-----=====--*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x
//Create global myWidth & myHeight variables accessible in the next section.
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  } else{
    //As a last resort use the most robust method of getting the screen resolution
    myWidth = screen.width;
    myHeight = screen.height;
  }
  //window.alert( 'Width = ' + myWidth );
  //window.alert( 'Height = ' + myHeight );

   redirectURL  ="http://www.etvland.com/";
   redirectURL +="eTV_Zone.php?Resolution="+myWidth+"x"+myHeight+"&"+"Page=Dialup"+Language_Settings+"&Country=";
   //location.href(redirectURL);
   //var country1 = Iraq.replace(" - ", "");
   //alert (Iraq);
   //alert (country1);
	

//Onclick go to URL   
function go(x,y){
  if (x)
  {
  var country = x.replace(' - ', '');
  }
  else
  {
  var country = "";
  }
  
  if (y)
  {
  var mediaType = "&MediaType="+y;
  }
  else
  {
  var mediaType = "";
  }
  
  var countryLink=redirectURL+country+mediaType+"#anchr1";
  window.location.href=countryLink;
}
	
    function mrI(y)
    {//Moue Over Image
        y.src = "http://www.etvland.com/images/buttons/Play-Pressed-icon64x64px.png";
    } 
    function mtI(y)
    {//Mouse Out Image
        y.src = "http://www.etvland.com/images/buttons/Play-Hot-icon64x64px.png";
    }
    function mcI(y)
    {//Mouse Down Image
        y.src = "http://www.etvland.com/images/buttons/Play-Disabled-icon64x64px.png";
    }
	
	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  width and height of brower -> onclick go to url -> MouseOver MouseOut MouseDown   }=====-----=====----*/





















/*-----====={ Javascript Click Link  }=====-----=====--*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x
/* *******
Function Call:
fireEvent(document.getElementById("grey_link"),'click');
******* */
function fireEvent(obj,evt){
	var fireOnThis = obj;
	if( document.createEvent ) {
	  var evObj = document.createEvent('MouseEvents');
	  evObj.initEvent( evt, true, false );
	  fireOnThis.dispatchEvent(evObj);
	} else if( document.createEventObject ) {
	  fireOnThis.fireEvent('on'+evt);
	}
}
	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  Javascript Click Link   }=====-----=====----*/





















/*-----====={ Javascript window event listener for window resize  }=====-----=====--*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x
/* *******
Use this add Events in both IE and Firefox:
addEvent(window, "resize", function() { alert("hello there!"); } );
******* */
var addEvent = function(elem, type, eventHandle) {
    if (elem == null || elem == undefined) return;
    if ( elem.addEventListener ) {
        elem.addEventListener( type, eventHandle, false );
    } else if ( elem.attachEvent ) {
        elem.attachEvent( "on" + type, eventHandle );
    }
};
	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  Javascript window event listener for window resize   }=====-----=====----*/





















/*-----====={ Javascript Relaunch Overlapping Drop Down Menus if Windows is Resized Once When Windows has Finished resizing  }=====-----=====--*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x
/* *******
//window.onresize = resizeMe(finishResize());
******* */
var resizeEvent = function() {
	var Zero=0, One=0, Two=0, Three=0;//All menus are assumed to be closed at the beginning
	//Find out if mandatory overlapping content Zero is open	
	if (document.getElementById("subcontentRelZero").style.visibility=='visible')
	{
		document.getElementById("subcontentRelZero").style.visibility='hidden';
		Zero=1;
	}
	//Find out if optional overlapping content One is open	
	if (document.getElementById("subcontentRelOne").style.visibility=='visible')
	{
		document.getElementById("subcontentRelOne").style.visibility='hidden';
		One=1;
	}
	//Find out if optional overlapping content Two is open	
	if (document.getElementById("subcontentRelTwo").style.visibility=='visible')
	{
		document.getElementById("subcontentRelTwo").style.visibility='hidden';
		Two=1;
	}	
	//Find out if optional overlapping content Three is open	
	if (document.getElementById("subcontentRelThree").style.visibility=='visible')
	{
		document.getElementById("subcontentRelThree").style.visibility='hidden';
		Three=1;
	}

	//Include the following two lines to add a delay timer to make sure resizing has finished
	/*
	window.clearTimeout('resizeTimer');
	resizeTimer = window.setTimeout(finishResize, 1000);
	*/

	finishResize();
	
	function finishResize() 
	{
		//if overlapping content Zero is open
		if (Zero==1)
		{
			fireEvent(document.getElementById("subcontentIDZero"),'click');
		}
		//if overlapping content One is open
		if (One==1)
		{
			fireEvent(document.getElementById("subcontentIDOne"),'click');
		}
		//if overlapping content Two is open
		if (Two==1)
		{
			fireEvent(document.getElementById("subcontentIDTwo"),'click');
		}
		//if overlapping content Two is open
		if (Three==1)
		{
			fireEvent(document.getElementById("subcontentIDThree"),'click');
		}
	}
	
};
	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  Javascript Relaunch Overlapping Drop Down Menus if Windows is Resized Once When Windows has Finished resizing   }=====-----=====----*/





















/*-----====={ Javascript Change Text On Page  }=====-----=====--*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x
/* *******
It is called to change some text at the top of the page to offer instructions on how to proceed to get the list of channels
******* */
//Add Instruction to Top of Page
function topOfPageInstruction()
{
	if (document.getElementById('titleNamespan').getElementsByTagName("a")[0])
	{
		clearTimeout(timer);
		document.getElementById('titleNamespan').getElementsByTagName("a")[0].innerHTML = '<span class="stopbtn"></span>';
		document.getElementById('titleNamespan').getElementsByTagName("a")[1].innerHTML = '<span style=\"font-size:16px;position:relative;left:142px;\">PLEASE SELECT A COUNTRY</span>';
		/*alert("1");*/
	}else{
		var timer = setTimeout(topOfPageInstruction,100);
		/*alert("0");*/
	}
}
	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  Javascript Change Text On Page   }=====-----=====----*/




















/*-----====={ Javascript Expand Submenu  }=====-----=====--*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x
/* *******

******* */
//Expand Submenu for List of Countries
var x789='';
var y789='';
var z789='';
function expandSubMenu(itemName,initialLine,totalLines)
{
  //alert (x789+y789+z789);
  for (i=initialLine;i<=totalLines;i++)
  {
    var id = itemName+i;

    if (document.getElementById)
    {
      var e = document.getElementById(id);
    }
    else if (document.all)
    {
      var e = window.document.all[id];
    }
    else if (document.layers)
    {
      var e = window.document.layers[id];
    }

    if (e.style.display=='none' || e.style.display=='')
    {
	  e.style.display='block';
    }
	else
	{
	  e.style.display='none';
    }
  } 

  if (x789!='' || y789!='' || z789!='')
  {
    if (x789!=itemName)
	{
	collapseSubMenu(x789,y789,z789);
	}
  }
  x789 = itemName;
  y789 = initialLine;
  z789 = totalLines;
}

function collapseSubMenu(itemName,initialLine,totalLines)
{
  for (i=initialLine;i<=totalLines;i++)
  {
    var id = itemName+i;

    if (document.getElementById)
    {
      var e = document.getElementById(id);
    }
    else if (document.all)
    {
      var e = window.document.all[id];
    }
    else if (document.layers)
    {
      var e = window.document.layers[id];
    }

	e.style.display='none';
  } 
}
	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  Javascript Expand Submenu   }=====-----=====----*/




















/*-----====={ Javascript Expandable/Collapsible Content  }=====-----=====--*/
<!-- Begin script ------------- hide from Ancient Browsers --------------------------x

function dsp(loc){
   if(document.getElementById){
      var foc=loc.firstChild;
      foc=loc.firstChild.innerHTML?
         loc.firstChild:
         loc.firstChild.nextSibling;
      foc.innerHTML=foc.innerHTML=='+'?'-':'+';
      foc=loc.parentNode.nextSibling.style?
         loc.parentNode.nextSibling:
         loc.parentNode.nextSibling.nextSibling;
      foc.style.display=foc.style.display=='block'?'none':'block';}}  

if(!document.getElementById)
   document.write('<style type="text/css"><!--\n'+
      '.dspcont{display:block;}\n'+
      '//--></style>');
	// End script ------------- Unhide --------------------------------------x -->	
/*-----====={  Javascript Expandable/Collapsible Content   }=====-----=====----*/

// End -->
