function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function changeID(id, newClass) {
	identity=document.getElementById(id);
	identity.className=newClass;
}

function changeName(name, newClass) {
	identity=document.getElementsByName("Copy");
	identity.className=newClass;
}

function findLinkByHref(href) {
  for (var i=0; i<document.links.length; i++) {
    if (document.links[i].href == href) return i;
  }
  return -1;
}

function changeLinkHref(id,newHref,oldHref) {
  if (document.links.length > 0) {
    if (document.getElementById) {
      document.getElementById(id).href = newHref;
    }
    else if (document.all) {
      document.all[id].href = newHref;
    }
    else {
      var index = findLinkByHref(oldHref);
      if (index > -1)
        document.links[index].href = newHref;
    }
  }
} 

function BookmarkThis(){
	var txt = "Bookmark Article";
	// do not edit below this line
	// ===========================
	
	//var url = this.location;
	//var who = document.title;
	var ver = navigator.appName;
	var agt=navigator.userAgent.toLowerCase(); 
	var is_mac    = (agt.indexOf("mac")!=-1); 
	var num = parseInt(navigator.appVersion);
	if(is_mac){
	   txt += "  (Cmd+D)";
	   document.write(txt);
	} 
	else if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
	   document.write('<a href="javascript:void(0)" class="slideNav"');
	   document.write('onclick="window.external.AddFavorite(location.href,document.title)"');
	   document.write('>'+ txt + '\</a>');
	}
	else{
	   txt += "  (Ctrl+D)";
	   document.write(txt);
	}
						
}

function printPage() {
	var txt = "Print Article";
	var agt=navigator.userAgent.toLowerCase(); 
	var is_mac    = (agt.indexOf("mac")!=-1); 
	
	if (window.print){
	   document.write('<a href="javascript:void(0)" class="slideNav"');
	   document.write('onclick="window.print()"');
	   document.write('>'+ txt + '\</a>');
	}
	else if(is_mac){
	   txt += "  (Cmd+P)";
	   document.write(txt);
	} 
	else{
	   txt += "  (Ctrl+P)";
	   document.write(txt);
	}
}


function goToURL(go) {
	window.location = go;
}

// Open window to size for Send to Friend
function openFriend(record){
	myFriend=window.open("","Friend","toolbar=no,scrollbars=no,directories=no,status=no,menubar=no,resizable=no,width=400,height=400");
	myFriend.focus();
	 if (myFriend.opener == null) myFriend.opener = window;
			myFriend.opener.name = "mainWindow";
	return true
}

function refreshMainWindow(url){
	setTimeout('self.close()', 1500);
	//opener.location.href = url;
}

function doClear(theText) {
	if (theText.value == theText.defaultValue) {
		theText.value = ""
	}
}

function confirmSubmit(){
	var agree=confirm("Are you sure you want to\ndelete this submission from\nthe database?");
		if (agree)
			return true 
		else
			return false
}

function confirmDeleteRSADS(){
	var agree=confirm("Are you sure you want to\ndelete this item from\nthe database?");
		if (agree)
			return true 
		else
			return false
}
function confirmDeleteSHADS(){
	var agree=confirm("Are you sure you want to\ndelete this item from\nthe database?");
		if (agree)
			return true 
		else
			return false
}
function confirmDeleteSHCAT(){
	var agree=confirm("Are you sure you want to\ndelete this advertisers category from\nthe database?");
		if (agree)
			return true 
		else
			return false
}


function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function tmt_findObj(n){
	var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
	x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
	}else{x=document.getElementById(n)}return x;
}
function MM_showHideLayers() { //v3.0A Modified by Al Sparber and Massimo Foti for NN6 Compatibility
  var i,p,v,obj,args=MM_showHideLayers.arguments;if(document.getElementById){
   for (i=0; i<(args.length-2); i+=3){ obj=tmt_findObj(args[i]);v=args[i+2];
   v=(v=='show')?'visible':(v='hide')?'hidden':v;
   if(obj)obj.style.visibility=v;}} else{
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }}
}


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}




// Rollover Functions

function newImage(arg) { 
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}



function updateCaption(id,text) {
	var ver = navigator.appName
	var num = parseInt(navigator.appVersion)
	if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
		document.all(id).innerText = text;
	} else {
		document.getElementById(id).childNodes[0].nodeValue = text;
	}
	
}		
function updateCredit(id,text) {
	var ver = navigator.appName
	var num = parseInt(navigator.appVersion)
	if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
		document.all(id).innerText = text;
	} else {
		document.getElementById(id).childNodes[0].nodeValue = text;
	}
	
}		

function updatePostcard(id,text) {
	var ver = navigator.appName
	var num = parseInt(navigator.appVersion)
	if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
		document.all(id).innerText = text;
	} else {
		document.getElementById(id).childNodes[0].nodeValue = text;
	}
	
}		

function printWindow() {
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
}


function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

<!-- ********************************** Menu Settings & Styles ********************************** -->

function imenus_data0(){


	this.enable_visual_design_mode = false

	this.main_is_horizontal = true
	this.menu_showhide_delay = 150


   /*---------------------------------------------
   Images (expand and pointer icons)
   ---------------------------------------------*/


	this.main_expand_image = 'http://www.opencube.com/vim/images/sample3_main_arrow.gif'
	this.main_expand_image_hover = 'http://www.opencube.com/vim/images/sample3_main_arrow.gif'
	this.main_expand_image_width = '7'
	this.main_expand_image_height = '5'
	this.main_expand_image_offx = '0'
	this.main_expand_image_offy = '5'

	this.sub_expand_image = 'http://www.opencube.com/vim/images/sample3_sub_arrow.gif'
	this.sub_expand_image_hover = 'http://www.opencube.com/vim/images/sample3_sub_arrow.gif'
	this.sub_expand_image_width = '5'
	this.sub_expand_image_height = '7'
	this.sub_expand_image_offx = '0'
	this.sub_expand_image_offy = '3'

	this.main_pointer_image = 'http://www.opencube.com/vim5.0/arrow_down.gif'
	this.main_pointer_image_width = '10'
	this.main_pointer_image_height = '11'
	this.main_pointer_image_offx = '-3'
	this.main_pointer_image_offy = '-4'

	this.sub_pointer_image = 'http://www.opencube.com/vim5.0/arrow_right.gif'
	this.sub_pointer_image_width = '13'
	this.sub_pointer_image_height = '10'
	this.sub_pointer_image_offx = '-13'
	this.sub_pointer_image_offy = '-5'




   /*---------------------------------------------
   Global Menu Styles
   ---------------------------------------------*/

	//Main Menu

	this.main_container_styles = "background-color:#ffffff; border-style:ridge; border-color:#ffffff; border-width:0px; padding:0px; margin:5px; "
	this.main_item_styles = "background-color:#cccc99; color:#ffffff; text-align:left; font-family:Verdana; font-size:12px; font-weight:bold; font-style:normal; text-decoration:none; border-style:solid; border-color:#dddddd; border-width:1px; padding:2px 8px; "
	this.main_item_hover_styles = "background-color:#878857; text-decoration:none; "
	this.main_item_active_styles = "background-color:#efefef; text-decoration:none; "



	//Sub Menu

	this.subs_container_styles = "filter:progid:DXImageTransform.Microsoft.Wheel(duration=0.30000001192092895,spokes=4); background-color:#ffffff; border-style:solid; border-color:#ffffff; border-width:1px; padding:5px; margin:4px 0px 0px; "
	this.subs_item_styles = "color:#ffffff; text-align:left; font-size:11px; font-weight:normal; text-decoration:none; border-style:none; border-color:#000000; border-width:1px; padding:2px 5px; "
	this.subs_item_hover_styles = "background-color:#878857; color:#000000; text-decoration:none; "
	this.subs_item_active_styles = "background-color:#cccc99; "



}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



