var bgimage=new Image(750,356)//preload
bgimage.src="images_new/mounts2.jpg";

var bgimage2=new Image(450,8)//preload
bgimage2.src="images_new/bg2.jpg";

function menushow(layerToClone){
//var cloned=cloner("shower", layerToClone);
//if(cloned){
document.getElementById("menuwrap2").style.display="block";
document.getElementById("outbar").style.display="block";
document.getElementById("curtain").style.width=document.getElementById("shower").offsetWidth+'px';
document.getElementById("curtain").style.left=document.getElementById("shower").offsetLeft+'px';
document.getElementById("curtain").style.top=document.getElementById("menuwrap2").offsetTop+'px';
document.getElementById("curtain").style.visibility="visible";//offRL() if run set it to invisible
document.getElementById("curtain").style.display="block";
if(document.all /*firefox bug with style sheets: the background-attachment: fixed doesn't want the ending ; to be read, but then this fixes the attachement for firefox BUT breaks it for explorer: so make firefox happy via cc and explorer via js*/){document.getElementById("shower").style.backgroundAttachment="fixed";};
cloner("shower", layerToClone);
document.getElementById("shower").scrollTop=0;
setTimeout('offRL("curtain", 10, 6, 0, 1)', 500);
//};
return false;
}

function closemenu(){
document.getElementById("menuwrap2").style.display="none";
document.getElementById("curtain").style.display="none";
document.getElementById("outbar").style.display="none";
return false;
}

function offRL(id, speed, amount, size, onExitOptionalFunction, stop1, stop2){
if(id){
id=(typeof(id)=="object")? id.id: id;
var variableName=id+"_clipper";
	if(window[variableName] && window[variableName].isRunning){return;};
	if(!id || !document.getElementById(id)){return;};
var object=window[variableName]=new Object();
object['layer']=document.getElementById(id);
object["id"]=id;
var name="offRL";
object[name]=eval(name);
object["last"]=name;
object.isRunning=1;
object['speed']=parseFloat(speed) || 100;
object['amount']=parseFloat(amount) || 1;
object['size']=parseFloat(size) || object['layer'].offsetWidth/2;
onExitOptionalFunction=(typeof(onExitOptionalFunction)=="string")?
eval(onExitOptionalFunction):onExitOptionalFunction;
object['onExitOptionalFunction']=(typeof(onExitOptionalFunction)=="function")?
	onExitOptionalFunction:(onExitOptionalFunction/*==1*/)?
	function(object){
	document.getElementById( object.id ).style.visibility="hidden";
	object.setClip(object.originalClip);
	}
	:0;
object['stop1']=parseFloat(stop1) || 0;
object['stop2']=parseFloat(stop2) || object['layer'].offsetHeight;
object['timer']=null;
object["stop"]=function(){
	clearInterval(this.timer);
	this.isRunning=0;
	if(typeof(this.onExitOptionalFunction)=="function"){this.onExitOptionalFunction(this);};
};
object["setClip"]=
	function(array){
		if(typeof(array)=="string"){array=array.match(/\d+/g);}
	var output="rect(";
	for(var a=0; a<array.length; a++){output+=array[a]+"px, ";};
	this.layer.style.clip=output.substring(0, output.length - 2)+")";
	};
object["getClip"]=
	function(){
		if(!this.layer.style.clip){
			this.layer.style.clip=
			"rect(0px, "+ parseFloat(this.layer.offsetWidth)+"px, "+
			parseFloat(this.layer.offsetHeight) + "px, 0px)";
		};
	var clip=this.layer.style.clip.replace(/(^\s*rect\s*\()|(\)\s*$)/g,'').replace(/\s+/g," ").split(",");
	return [parseFloat(clip[0]), parseFloat(clip[1]), parseFloat(clip[2]), parseFloat(clip[3])];
	};
object['layer'].style.position="absolute";
object['layer'].style.visibility="visible";
object["originalTop"]=object['layer'].offsetTop;
object["originalLeft"]=object['layer'].offsetLeft;
object['originalClip']=object.getClip();
object['top']=object['originalClip'][0];
object['right']=object['originalClip'][1];
object['bottom']=object['originalClip'][2];
object['left']=object['originalClip'][3];
object.setClip([ object['top'], object['right'], object['bottom'], object['left'] ]);
object['timer']=setInterval(
	variableName+"."+name+"()", object['speed']
);
return 0;
};
//RUNTIME:
this.right -= (this.right - this.amount>=this.stop1)?
this.amount:(this.stop1==0)?this.right:
(this.right - this.stop1>0)?(this.right - this.stop1):
Math.abs(this.right - this.stop1);
	this.setClip( [this.top, this.right, this.bottom, this.left] );
//EXIT CONDITION:
if(this.right <= this.stop1){ this.stop(); };
/*keep this comment to reuse freely
http://www.unitedscripters.com */}


function items_to_contactUs(){
menushow('clone5');
return false;
}