// JavaScript Document

// page width function
function getHeight()
{ 	 
	var myHeight = 0;
	
	if( typeof( window.innerWidth ) == "number" ) 
	{	
		myHeight = window.innerHeight;
	} 
	else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
	{	
		myHeight = document.documentElement.clientHeight;
	} 
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
	{	
		myHeight = document.body.clientHeight;
	}
	
	return (myHeight-30);
}

function getWidth()
{ 	 
	var myWidth = 0;
	
	if( typeof( window.innerWidth ) == "number" ) 
	{	myWidth = window.innerWidth;
	} 
	else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
	{	myWidth = document.documentElement.clientWidth;
	} 
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
	{	myWidth = document.body.clientWidth;	
	}
	
	return (myWidth/2) -100 ;
}

document.write('<div id="wpslink" style="position:absolute; left:'+getWidth()+'px; top:'+getHeight()+'px; "><a href="http://www.wpsltd.co.uk" target="_blank">Created By Weston Point Studios</a></div>');