function preload(section)	{
	alert(section);
}

function LPdetect()	{
	app = navigator.appName;
	appV = navigator.appVersion;
	operSys = navigator.platform;
	//alert(operSys);
	if (app.indexOf('Netscape') != -1 & appV.indexOf('4.') != -1)	{
		//No BG change
	}
	else 	{
		document.body.background = "../images/misc/spacer.gif";
	}
	thisPath = document.location.toString();
	LPpath = top.subFrame.location.toString();
	separator = "/";
	thisArray = thisPath.split(separator);
	thisSection = thisArray[thisArray.length - 2];
	//alert(thisSection);
	LParray = LPpath.split(separator);
	LPsection = LParray[LParray.length - 2];
	//alert(LPsection);
	if(thisSection != LPsection)	{
		top.subFrame.location = "../" + thisSection + "/" + thisSection + "_sub.htm";
	}
}

function goContent(loc)	{
	parent.contentFrame.location = loc;
	//alert(loc);
	//alert(parent.contentFrame.location);
}

function goMM(loc)	{
	//alert(loc);
	//alert(parent.contentFrame.location);
	parent.subFrame.location = loc + "/" + loc + "_sub.htm";
	parent.contentFrame.location = loc + "/" + loc + "_home.htm";
}

function goBuy(mediaType)	{
	if(mediaType == "DL")	{
		if(document.order_form.opSys[0].checked)	{
			targetURL = "https://www.paypal.com/xclick/business=cworder%40yimagination.com&item_name=Comixware+Classic+PC+Download+Version&item_number=20001&amount=40.00&notify_url=http%3A//www.yimagination.com/php/ipn.php&return=http%3A//www.yimagination.com/php/cwpc_login.php&cancel_return=http%3A//www.comixware.com/frameset.php%3FnewSection%3Dorder&cn=Comments&currency_code=USD";
		}
		else	{
			targetURL = "https://www.paypal.com/xclick/business=cworder%40yimagination.com&item_name=Comixware+Classic+MAC+Download+Version&item_number=20002&amount=40.00&notify_url=http%3A//www.yimagination.com/php/ipn.php&return=http%3A//www.yimagination.com/php/cwmac_login.php&cancel_return=http%3A//www.comixware.com/frameset.php%3FnewSection%3Dorder&cn=Comments&currency_code=USD";
		}
	}
	else	{
		if(document.order_form_cd.opSys[0].checked)	{
			targetURL = "https://www.paypal.com/xclick/business=cworder%40yimagination.com&item_name=Comixware+Classic+PC+CD+Version&item_number=20011&amount=49.99&notify_url=http%3A//www.yimagination.com/php/ipn.php&return=http%3A//www.yimagination.com/php/cwpccd_login.php&cancel_return=http%3A//www.comixware.com/frameset.php%3FnewSection%3Dorder&cn=Comments&currency_code=USD";
		}
		else	{
			targetURL = "https://www.paypal.com/xclick/business=cworder%40yimagination.com&item_name=Comixware+Classic+MAC+CD+Version&item_number=20012&amount=49.99&notify_url=http%3A//www.yimagination.com/php/ipn.php&return=http%3A//www.yimagination.com/php/cwmaccd_login.php&cancel_return=http%3A//www.comixware.com/frameset.php%3FnewSection%3Dorder&cn=Comments&currency_code=USD";
		}
	}
	//window.open(targetURL);
	top.location = targetURL;	
}

