function general_help(str) {
OpenWin = this.open("http://www.video-tour.net/general_help.php#"+ str, "helpWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=560,height=450,left=175,top=40");
}
function add_help(str) {
OpenWin = this.open("http://www.liquidator.tv/site/help/adding_help.php#"+ str, "helpWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=560,height=450,left=175,top=40");
}

function pop_up(width,height,web_link) {
OpenWin = this.open(web_link, "helpWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width="+width+",height="+height+",left=175,top=40");
}
function pop_up_location(width,height,left,top,web_link) {
OpenWin = this.open(web_link, "helpWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width="+width+",height="+height+",left="+left+",top="+top);
}

function email_me(name,domain,subject){
// make sure to add a subject
name = name;
sign = '@';
domain = domain;
location.href=('mailto:'+name+sign+domain+'?subject='+subject);

} // end email_me

function redirect(the_link){
location.href= (the_link); 
}// end redirect

function mouse_over_button(to_change){
document.all[to_change].className='form_button_hover';
}
function mouse_out_button(to_change){
document.all[to_change].className='form_button';
}



function Toggle(item) {
   obj=document.getElementById(item);
   visible=(obj.style.display!="none")
   //var key=document.getElementById("x" + item);
   if (visible) {
     obj.style.display="none";
      //key.innerHTML="<img src='http://www.therolodex.com/navigation/folder_nav/folder.gif' width='16' height='16' hspace='0' vspace='0' border='0'>";
   } else {
      obj.style.display="block";
      //key.innerHTML="<img src='http://www.therolodex.com/navigation/folder_nav/textfolder.gif' width='16' height='16' hspace='0' vspace='0' border='0'>";
   }
}

<!-- Copyright 2006,2007 Bontrager Connection, LLC
// http://bontragerconnection.com/ and http://www.willmaster.com/
// Version: July 28, 2007
var cX = 0; var cY = 0; var rX = 0; var rY = 0;
function UpdateCursorPosition(e){ cX = e.pageX; cY = e.pageY;}
function UpdateCursorPositionDocAll(e){ cX = event.clientX; cY = event.clientY;}
if(document.all) { document.onmousemove = UpdateCursorPositionDocAll; }
else { document.onmousemove = UpdateCursorPosition; }
function AssignPosition(d,left,top) {
if(!left){left = 10}
if(!top){top = 10}
if(self.pageYOffset) {
	rX = self.pageXOffset;
	rY = self.pageYOffset;
	}
else if(document.documentElement && document.documentElement.scrollTop) {
	rX = document.documentElement.scrollLeft;
	rY = document.documentElement.scrollTop;
	}
else if(document.body) {
	rX = document.body.scrollLeft;
	rY = document.body.scrollTop;
	}
if(document.all) {
	cX += rX; 
	cY += rY;
	}
d.style.left = (cX+left) + "px";
d.style.top = (cY+top) + "px";
}
 function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d,left,top) {
if(d.length < 1) { return; }
var dd = document.getElementById(d);
AssignPosition(dd,left,top);
dd.style.display = "block";
}
function ReverseContentDisplay(d) {
if(d.length < 1) { return; }
var dd = document.getElementById(d);
AssignPosition(dd);
if(dd.style.display == "none") { dd.style.display = "block"; }
else { dd.style.display = "none"; }
} // end function
//-->
function position(d,left,top){
var the_id = document.getElementById(d);
the_id.style.left = screen.width -290;
//the_id.style.float: right;
the_id.style.top=top;
if(the_id.style.display == "none") { the_id.style.display = "block"; }
else { the_id.style.display = "none"; }
} // end function

function screen_size(){
//var width = screen.width;
//var height = screen.height
document.getElementById('my_table').width = (screen.width - 30);
// call with this at the bottom of the page.    window.onload = screen_size();
} // end screen size function


function play(media){
  // you need to include this on the page: <div id="mediaplayer"></div>
document.getElementById('mediaplayer').innerHTML='<object classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"'
+'type="application/x-oleobject" width="0" height="0"><param name="fileName" value="'+media+'">'
+'<embed type="application/x-mplayer2" src="'+media+'" width="0" height="0" AUTOSTART="TRUE"><\/embed><\/object>'
}

