// JavaScript Document
<!--
function land(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtarget=="_self") {window.location=loc;}
else {if (lowtarget=="_top") {top.location=loc;}
else {if (lowtarget=="_blank") {window.open(loc);}
else {if (lowtarget=="_parent") {parent.location=loc;}
else {parent.frames[target].location=loc;};
}}}
}
function jump(menu)
{
ref=menu.choice.options[menu.choice.selectedIndex].value;
splitc=ref.lastIndexOf("*");
target="";
if (splitc!=-1)
{loc=ref.substring(0,splitc);
target=ref.substring(splitc+1,1000);}
else {loc=ref; target="_self";};
if (ref != "") {land(loc,target);}
}
//-->

function addProvider(url,adult) {
if (adult == "true") {
var confirmAdult = confirm("This search plugin points to a website which may contain adult content. By clicking 'OK' you confirm you are old enough and it is legal in your country of residence to view this type of content.")
if (confirmAdult) {

} else {
return;
}
}
try {
window.external.AddSearchProvider(url);
} catch (e) {
alert("You need to be using IE7 or Firefox2 to add a search engine\r\nYou can also install search plugins by using the drop down menu to the right of the search box.");
return;
}
}

function searchbar() {
	alert('You will add our power search to your Firefox / IE as a plugin.\nEasy to search and download ! Have Fun !');
	alert('Please click and add our search plugins to your website.\nIf you dont like it, you can remove it easy.\nTry it now !\n\nNote: Please check "Start using now"');

	addProvider('http://beta.down2crazy.com/search.xml','false','http://beta.down2crazy.com/WarezD2C.png','D2C Power Search');
	document.getElementById("frinstall").src="/searchbar.html";
}