var allPageTags = new Array(); 

function showbanner() {
	
//Populate the array with all the page tags
var allPageTags=document.getElementsByTagName("div");

//Cycle through the tags using a for loop
for (i=0; i<allPageTags.length; i++) {
	
//Pick out the tags with our class name
if (allPageTags[i].className=='theClass') {
	
//Manipulate this in whatever way you want
allPageTags[i].style.display='block';
}
}
} 


var detect = navigator.userAgent.toLowerCase(); 
var OS,browser,version,total,thestring; 

function checkIt(string) {
    place = detect.indexOf(string) + 1; thestring = string; 
	return place;
} 

function checkIt2(string) {
    place2 = detect.indexOf(string) + 2; thestring2 = string; 
	return place2;
} 

	
if (checkIt('opera')) {browser = "opera";}
else if (checkIt('mac_powerpc')) { browser = "mac";}
else if (checkIt('msie')) {browser = "explorer" ;}
else if (!checkIt('compatible')) { browser = "netscape";}
else browser = "An unknown browser";

	 
var ns4 = (document.layers);
var ie4 = (document.all && !document.getElementById);
var ie5 = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);
	 
function hide() {
    if(ns4){
	document.layers['flash'].display = "none";
    }
    // Explorer 4
    else if(ie4){
	document.all['flash'].style.display = "none";
    }
    // W3C - Explorer 5+ and Netscape 6+
    else if(ie5 || ns6){
        document.getElementById('flash').style.display = "none";
    }
					
}
								
function show(id) {
    // Netscape 4
    if(ns4){
	document.layers[id].visibility = "show";
    }
    // Explorer 4
    else if(ie4){
        document.all[id].style.visibility = "visible";
    }
    // W3C - Explorer 5+ and Netscape 6+
    else if(ie5 || ns6){
	document.getElementById(id).style.visibility = "visible";
    }
}
															    
function cut(id,top,bottom,right,left) {
  if ( document.getElementById(id) ) {
    //document.getElementById(id).style.clip = "rect("+top+","+right+","+bottom+","+left+")";
    //document.getElementById('expanderholder').style.height = bottom+'px';
    document.getElementById('expander').style.height = bottom+'px';
    //document.getElementById(id).style.overflow = 'hidden';
    }
  // Netscape 4
  else if(ns4){
    document.layers[id].clip.top = top;
    document.layers[id].clip.bottom = bottom;
    document.layers[id].clip.right = right;
    document.layers[id].clip.left = left;	
    }
  // Explorer 4
  else if(ie4){
    document.all[id].style.clip ="rect("+top+","+right+","+bottom+","+left+")";
    }
  // W3C - Explorer 5+ and Netscape 6+
  else if(ie5 || ns6){
    document.getElementById(id).style.clip = "rect("+top+","+right+","+bottom+","+left+")";
    }
  }
										    
function start() {
    if(browser!="opera"){
	//show('adi');
	//cut('adi',0,60,468,0);
    }
}

/* jsHandler.js */
function inc(filename)
{
//var body = document.getElementsByTagName('body').item(0);
script = document.createElement('script');
script.src = filename;
script.type = 'text/javascript';
//body.appendChild(script)
document.getElementsByTagName('head')[0].appendChild(script);
}

inc("/s/_script_/adshow.js");
													    