// JavaScript Document

function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}


function showprice() {
	var currenturl = window.location.href.toLowerCase();
	if (currenturl.indexOf("pricing") != -1) {
		var headID = document.getElementsByTagName("head")[0];
		var cssNode = document.createElement('link');
		cssNode.type = 'text/css';
		cssNode.rel = 'stylesheet';
		cssNode.href = 'css/pricing.css';
		cssNode.media = 'screen';
		headID.appendChild(cssNode);
	}
	if (currenturl.indexOf("whole") != -1) {
		var headID = document.getElementsByTagName("head")[0];
		var cssNode = document.createElement('link');
		cssNode.type = 'text/css';
		cssNode.rel = 'stylesheet';
		cssNode.href = 'css/wpricing.css';
		cssNode.media = 'screen';
		headID.appendChild(cssNode);
	}
}


addLoadEvent(showprice);