var statements={
                Home:"Home page",
								Links:
                "Links to other sports and sports betting websites."
								+"<p>Webmasters, to set up a reciprocal link to your site go to 'Contact Us' and select 'Add a link'.",
                Webmasters:
								"<li>We have a free perm calculator, exactly the same as the one here, "
								+"that you can embed on your site. Takes just 6 lines of script. Looks like part of your site. "
								+"Click the link to see it in action"
								+"<li>Reciprocal link your site to us. Either give us your website details when you "
								+"register your perm calculator or alternatively go to 'Contact Us' and select 'Add a link'.",
								Contact:"<li>Tell us what you think about the calculator. "
								+"<li>Have we included a link to your favourite online bookmaker? If not let us know"
								+"<li>Something broken in your favourite browser? We've tried to include every browser in our testing. "
								+"<br>If it doesn't look good\, or worse still, doesn't work correctly in your browser, please tell us.",
								Privacy:"Your privacy is important to us. Click the link for the full privacy statement",
								About:"We built perm calculator because we needed a reliable, accurate, fast tool which gave the information "
								+"we needed to make properly informed betting decisions.  Click the link for more ...",
								Site_Map:"Just for seach engine robots really :-)",
								What_is:"How a perm works and what the maths behind it are, explained in simple terms",  
							  Bookmark:"Microsoft Explorer users, Bookmark will add the following URL and description to your favourites list\:"
								+"<br><div style='padding:3px; background-color:#eeeeee;'>"
								+"www.perm-calculator.com\,<br>Sports betting odds perm calculator.</div>",
							  Recommend:"Tell a friend about us.",
							  Tell:"Tell a site owner about us."
								
							 };
var home;

var navigateto;
 
 
function loaded(){
              navigateto={
              Home:home,
							Links:['perm-calculator-links.html',1],
							Webmasters:['free-content/free_perm_calculator_black.html',1],
							Contact:['contact_perm_calculator.php?customers',1],
							Privacy:['perm-calculator-privacy.html',1],
							About:['about-perm-calculator.html',1],
							Site_Map:['site_map.html',1],
							What_is:['what-is-a-perm.html',1],
							How_reg:['how-do-i-register-with-an-online-bookmaker.html',1],
							Which_bm:['which-online-bookmaker-is-best-for-me.html',1],
							How_bet:['how-do-i-bet-a-perm-with-an-online-bookmaker.html',1],
							Bookmark:['window.external.AddFavorite("www.perm-calculator.com","Sports betting odds perm calculator")',0],
							Recommend:['contact_me.php?recommend_personal',1],
							Tell:['contact_me.php?recommend_webmaster',1]
						 };
							
							if(!navigator.appName.match("Explorer")){
							 while(!document.getElementById("menu_0")){};
							  document.getElementById("menu_0").removeChild(document.getElementById("Bookmark"));
							}	
							
					  }
								
var highlight={
              Home:1,
							Links:1,
							Webmasters:1,
							Contact:1,
							Privacy:1,
							About:1,
							Site_Map:1,
							What_is:1,
							Bookmark:0,
							Recommmend:1,
							Tell:0
						 };

var over_color="#ccffcc";
var out_color="#ccccff";
var click_color="#d3d3d3"					 
var tablet;
var bdr="solid #33ff00 1";
var lastclicked= new Array;
							 
function mouseover(theobject){
 tablet=document.getElementById("pc_tablet");
							tablet.style.top="80px";
							tablet.style.right="20px";
							tablet.style.width="230px";
              tablet.style.backgroundColor='#ddffdd';	
		          tablet.style.borderColor="#00ff00";
		          tablet.style.borderWidth="1px";
		          tablet.style.borderStyle="solid";
 tablet["calling_object"]=theobject;
 tablet.innerHTML=statements[theobject.id];
 if(lastclicked.object!=theobject){
  //tablet.calling_object.style.backgroundColor=over_color;
  tablet.calling_object.style.textDecoration='underline';
  }
 tablet.style.display="";
}

function mouseout(theobject){
 if(lastclicked.object!=theobject){
  tablet.calling_object.style.backgroundColor="";
  tablet.calling_object.style.textDecoration='none';
	} 
  tablet.style.display="none";
}

function mouseclick(theobject) {
 if(navigateto[theobject.id][1]){
  if(highlight[theobject.id]){
   if(lastclicked.object){
    lastclicked.object.style.backgroundColor="";
	 }
   theobject.style.backgroundColor=click_color;
   tablet.calling_object.style.textDecoration='none';
   tablet.style.display="none";
  }
  lastclicked.object=theobject;
  show_pop_over(theobject.id);
 } else {
  
 }
 //else 
 //document.getElementById('main_display').innerHTML=navigateto[theobject.id];
}

//var load_in_pop_over="Contact+ || +" Privacy");

function hide_pop_over(){
 document.getElementById("pop_over").style.display="none";
 lastclicked.object.style.backgroundColor="";
}

var pop_over_shown=0;

function show_pop_over(content){
 if(!pop_over_shown){
  document.getElementById("pop_over").innerHTML=""
	+"<table border=2 cellspacing=0 cellpadding=0>"
  +"<tr><td height=22 style=\"padding-top:0;padding-left:0;padding-right:0\">"
	+"<div style=\"background-color:#000066;padding:3px;padding-left:347px\">"
	+"<img src=http://perm-calculator.com/testing/images/button_out_iconise_grey.gif height=15 width=15 onclick=hide_pop_over()>"
	+"</div></td></tr>"
  +"<tr><td id=insert_pop_over_code>"
	+"</td></tr></table>";
	pop_over_shown=1;
  }
  innerhtml="<iframe class=pop_over src="+navigateto[content][0]+" frameborder=no></iframe>";
	//alert(innerhtml);
	document.getElementById("insert_pop_over_code").innerHTML=innerhtml;
	document.getElementById("insert_pop_over_code").innerHTML=innerhtml;
  document.getElementById("pop_over").style.display="";
}

function bookmark(){
  window.external.AddFavorite("http://www.perm-calculator.com","Sports betting odds perm calculator");
}

