onload=function(d){
	var browserName=navigator.appName; 
	for(var i=0;d=document.getElementsByTagName('a')[i++];){		
		if (browserName=="Microsoft Internet Explorer"){
			d.onfocus=function(){
				this.blur();
			}
		}
		else{
			d.onmousedown=function(){
				this.style.border=0;
				this.style.outline=0;
			}
		}
	}
}

function swf(p,w,h){
	str = ''+
		'<object type="application/x-shockwave-flash" data="'+p+'" width="'+w+'" height="'+h+'">'+
			'<param name="movie" value="'+p+'" />'+
			'<param name="menu" value="false" />'+
			'<param name="loop" value="false" />'+
			'<param name="wmode" value="transparent" />'+
			'<param name="scale" value="noscale" />'+
		'</object>'+
		'';
	document.write(str);
}

function switchUrls(a,gets){
	url = a.href.substr(0,a.href.indexOf('=')+1)+gets;
	window.open(url);
}

function get_featured(id){
	xajax_get_featured(id);
}

function select_tab(id){
	//print_r(document);
}

function print_r(theObj){

  //if(theObj.constructor == Array || theObj.constructor == Object){
    document.write("<ul>")
    for(var p in theObj){
      if(theObj[p].constructor == Array || theObj[p].constructor == Object){
		document.write("<li>["+p+"] => "+typeof(theObj)+"</li>");
        document.write("<ul>")
        print_r(theObj[p]);
        document.write("</ul>")
      } else {
		document.write("<li>["+p+"] => "+theObj[p]+"</li>");
      }
    }
    document.write("</ul>")
  //}
}
