	function position(tdiv){
	var Height = 0, Top = 0, Width = 0, Left = 0;
		if( typeof( window.innerWidth ) == 'number' ) {
			//Non-IE
			Width = window.innerWidth;
			Height = window.innerHeight;
		} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
				//IE 6+ in 'standards compliant mode'
				Width = document.documentElement.clientWidth;
				Height = document.documentElement.clientHeight;
			} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
				//IE 4 compatible
				Width = document.body.clientWidth;
				Height = document.body.clientHeight;
				}
		Top = (Height - 300) / 2;
		Left = (Width - 500) / 2;
		document.getElementById(tdiv).style.top=125;
		document.getElementById(tdiv).style.left=175;
	}
	
	function adSeen(){
		var exdate=new Date()
		exdate.setDate(exdate.getDate()+7)
		document.cookie="adSeen" + "=" +"1"+";expires="+exdate.toGMTString()
	}
	
	function showAd(){
		if (document.cookie.length>0){
			c_start=document.cookie.indexOf("adSeen" + "=")
	 		if (c_start!=-1){
			    return 1;
    		} 
			else return 0;
	  	}
		else return 0;
	}

	function show_mlink(tdiv){
		if(showAd()==0){
			hide_mlink(tdiv);					
			document.getElementById(tdiv).style.display="inline";
		}
	}
		
	function hide_mlink(tdiv){
		document.getElementById(tdiv).style.display="none";
		adSeen();
	}
