function changePlaylist(page,id)
{
	var url,url2;
	if (page=="main")
		url="playlists/main.xml";
	else
		url="playlists/"+page+id+".xml";
	var url2="playList="+url+"&ShowPlaylist=0&ShowEQ=1&firstTrack=1&initVol=100";
	parent.document.getElementById("player").innerHTML="<embed allowScriptAccess='never' src='player.swf' menu='false' width='300' height='300' quality='high' name='index' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' flashvars='"+url2+"' wmode='transparent' /></embed>";
}
function calcHeight()
{
	var the_height=parent.document.getElementById('main').contentWindow.document.body.scrollHeight;//find the height of the internal page
	var the_width=parent.document.getElementById('main').contentWindow.document.body.scrollWidth;//find the width of the internal page
	parent.document.getElementById('main').style.height=the_height;//change the height of the iframe
	parent.document.getElementById('main').style.width=the_width;//change the width of the iframe
}
function gup(name)
{  
	name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");  
	var regexS = "[\\?&]"+name+"=([^&#]*)";  
	var regex = new RegExp( regexS );  
	var results = regex.exec( window.location.href );  
	if( results == null )    
		return "";  
	else    
		return results[1];
}
function gupParent(name)
{  
	name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");  
	var regexS = "[\\?&]"+name+"=([^&#]*)";  
	var regex = new RegExp( regexS );  
	var results = regex.exec( parent.window.location.href );  
	if( results == null )    
		return "";  
	else    
		return results[1];
}
function fixGoogleAds()
{
	var loc=location.href.split("/");
	loc=loc[loc.length-1];
	/*var place=loc.indexOf(".php");
	var page=loc.substring(0,place);*/
	var arr=new Array();
	var bool=false;
	var i=0;
	arr[0]="dances";
	arr[1]="shownews";
	arr[2]="showart";
	arr[3]="showpimp";
	arr[4]="showcrew";
	arr[5]="showdance";
	arr[6]="about";
	arr[7]="advertise";
	arr[8]="contactus";
	arr[9]="sitemap";
	arr[10]="takanon";
	while ((!bool) && (i<arr.length))
	{
		if (loc.indexOf(arr[i])!=-1)
			bool=true;
		i++;
	}
	if (bool)
		parent.document.getElementById("gads").style.display="block";
	else
		parent.document.getElementById("gads").style.display="none";
}
if (window.addEventListener)
	window.addEventListener("load", fixGoogleAds, false)
else if (window.attachEvent)
	window.attachEvent("onload", fixGoogleAds)
else if (document.getElementById)
	window.onload=fixGoogleAds	