<!--

//function sfhover() {     
	//var sfEls = document.getElementById("nav-one").getElementsByTagName("LI");     
//	for (var i=0; i<sfEls.length; i++) {         
//sfEls[i].onmouseover=function() {             
//		this.className+=" sfhover";         
//		}         
//		sfEls[i].onmouseout=function() {             
//		this.className=this.className.replace(new RegExp(" sfhover\\b"), "");         
//			}     
//		} 
//	} 
//if (window.attachEvent) window.attachEvent("onload", sfHover); 


function fixIE6flicker(fix) {
	try {
		document.execCommand("BackgroundImageCache", false, fix);
	} catch(err) { }


function changeborder(id,bdr) {

identity=document.getElementById(id);
var initbdr=identity.style.border;
identity.style.border=bdr;

}

function roll(img_name, img_src,namelayer,newtext,artistlayer,newtext2,infolayer,newtext3)
   {
   document[img_name].src = img_src;
   document.all.namelayer.innerHTML = newtext;
   document.all.artistlayer.innerHTML = newtext2;
   document.all.infolayer.innerHTML = newtext3;
   
   }



function FindScreenMid(){
var mid=screen.width/2
return mid
}

function ShowHideLayers() { 
  var i,p,v,obj,args=ShowHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=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; }
	var we=322
}
function FindObj(n, d) { 
  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);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function IsEmptyOK(f){
	if(document.forms[0][f].value==0){
	return false;
	}
}
function IsEmpty(f){
	if(document.forms[0][f].value==0){
	return true;
	}
}
function NoHtml(f){
	if(document.forms[0][f].value.indexOf("<")>-1){
		alert("You are not allowed to use HTML tags in the text area");
	return true;
	}
	if (document.forms[0][f].value.indexOf("www.")>0 ||
		document.forms[0][f].value.indexOf("ftp.")>0 ||
		document.forms[0][f].value.indexOf("http")>0){
	 
	alert("You are not allowed to put web addresses in the text area");
	return true;
	}
}

function emailtest(f) {
  if (document.forms[0][f].value==0 || document.forms[0][f].value.indexOf('@', 1) == -1 || 
document.forms[0][f].value.indexOf('.', 3) == -1) 
  {
  	alert("You must emter a valid email address");
    return true;
  } 
}

function NoHtmltext(form,object,value){
	if(value.indexOf(">")>0){
		
	return false;
	}
	if (value.indexOf("www.")>0 ||
		value.indexOf("ftp.")>0 ||
		value.indexOf("http")>0){
	
	return false;
	}
	else
  {
    return true;
  } 

}

function textvalidate2(){
if (IsEmpty("jemail")){
	alert("You must have a valid Email address");
	return false;
	}
if(emailtest("jemail")){
	return false;
	}

}

function textvalidate(){
if (IsEmptyOK("about")){
	return true;
	}
if (IsEmpty("Email")){
	alert("You must have a vaild Email address");
	return false;
	}
if(NoHtml("about")){
	return false;
	}
if(emailtest("Email")){
	return false;
	}
}



function ExpandSection(idVariable, ImgName){

if (idVariable.style.display=="none")
	{
		idVariable.style.display="" ;
		if (ImgName.src != "") {ImgName.src = "Images/dwnex.gif" ;}
		
	}
else{
	idVariable.style.display="none" ;
	if (ImgName.src != "") {ImgName.src = "Images/rtex.gif" ;}
	
     }



}

function ContractSection(idVariable, ImgName){


if (idVariable.style.display==""){idVariable.style.display="none"}

  if (ImgName.src != "") {ImgName.src = "Images/rtex.gif" ;}
}



function ExpandViewingSection(idVariable, ImgName, tdOpen, tdClose){

if (idVariable.style.display=="none")
	{
		idVariable.style.display="" ;
		if (ImgName.src != "") {ImgName.src = "Images/spacer1.gif" ;}
		tdOpen.style.display="" ;
		tdClose.style.display="none" ;
	}
else{
	idVariable.style.display="none" ;
	if (ImgName.src != "") {ImgName.src = "Images/spacer1.gif" ;}
	tdOpen.style.display="none" ;
	tdClose.style.display="" ;
     }



}

function ContractViewingSection(idVariable, ImgName){


if (idVariable.style.display==""){idVariable.style.display="none"}

  if (ImgName.src != "") {ImgName.src = "Images/spacer1.gif" ;}
}

	
	
	
	
function openpops(){
reWin=window.open(url2,"","toolbar=no,location=no,directories=no,status=no,scrollbars=yes ,resizable=yes, menubar=no,width=400,height=350,top=15,left=180")
}
function openpops2(){
windowHandle=window.open(url2,"","toolbar=no,location=no,directories=no,status=no,scrollbars=no ,resizable=yes, menubar=no,width=30,height=50,top=60,left=200");setTimeout('resizeWindow()',1000)
}
function resizeWindow() {
    if (document.images) {
        if (windowHandle.document.images.length == 1) {
            if (document.layers) windowHandle.resizeTo(windowHandle.document.images[0].width+20,windowHandle.document.images[0].height+20)
            else if (document.all) windowHandle.resizeTo(windowHandle.document.images[0].width+30,windowHandle.document.images[0].height+75)
        }
        else 
            setTimeout('resizeWindow()',1000);
    }
}



// Version 1.1, January 31, 2007
//show hide div
var CanDo = document.getElementById ? true : false;
var DocAllMode = document.all ? true : false;
var scrollX = 0;
var scrollY = 0;
var cX = 0;
var cY = 0;

function UpdateCursorPosition(e) {
cX = e.pageX; cY = e.pageY;
}

function UpdateCursorPositionDocAll(e) {
cX = event.clientX; cY = event.clientY;
}

if(DocAllMode) { document.onmousemove = UpdateCursorPositionDocAll; }
else { document.onmousemove = UpdateCursorPosition; }

function ScrollAmount() {
if(self.pageYOffset) {
   scrollX = self.pageXOffset;
   scrollY = self.pageYOffset;
   }
else if(document.documentElement && document.documentElement.scrollTop) {
   scrollX = document.documentElement.scrollLeft;
   scrollY = document.documentElement.scrollTop;
   }
else if(document.body) {
   scrollX = document.body.scrollLeft;
   scrollY = document.body.scrollTop;
   }
}


function AssignPosition(i,id,d,xon,x,yon,y) {

var dd= (id + "image");
var ob = document.getElementById(dd);
NI = new Image(); 
NI.src = ob.src;
var newx = x;
var h = NI.height;
var w = ob.offsetWidth;
//alert ('The image size is '+w+'*'+h  );
if (i == 1){
	


//document.write (h);
	var scht=screen.height;
	var inght=h;
	var midht=(screen.height-h)/2;
	var htadj=0;
	if (screen.width>=1440){
		var newx = x +230;
		document.getElementById(dd).width = 350;
		htadj=30;
		//document.getElementById(dd).removeAttribute("height");
		
		}
	
	else if (screen.width>=1280){
		var newx = x + 150;
		var htadj=20;
		document.getElementById(dd).width = 330;
		//document.getElementById(dd).removeAttribute("height");
		}
	else if (screen.width>=1024){
		var newx = x + 30;
		document.getElementById(dd).width = 300;
		//var htadj=20;
		//document.write (dd);
		//ob.style.width = 400;
		//dd.width = 200;
		//document.getElementById(dd).removeAttribute("height");
		}
	else {
		var newx = x - 20;
		document.getElementById(dd).width = 260;
		y = y -30;
		htadj=35;
		//document.write (dd);
		//ob.style.width = 400;
		//dd.width = 200;
		//document.getElementById(dd).removeAttribute("height");
		}
	}

if(DocAllMode) { ScrollAmount(); }
//d.style.left = (cX+scrollX-390) + "px";
//d.style.top = (cY+scrollY-y)
d.style.position="absolute";
if(xon==0){d.style.left = (newx) + "px";
	}
else{d.style.left = (cX-x) + "px";
	}
if (yon==0){
		
		d.style.top = (document.documentElement.scrollTop+y) + "px";
	}
else if (yon==2){
				
				d.style.top = (document.documentElement.scrollTop+midht-htadj) + "px";
	}
else if (yon==3){
				
				d.style.top = (y) + "px";
	}
else{d.style.top = (cY+scrollY-y) + "px";
	}
}

function ShowContent(i,d,xon,x,yon,y) {
if(! CanDo) { return; }

var xxon = xon;
var xx = x;
var yyon = yon;
var yy = y;
var dd = document.getElementById(d);
for (l = 1; l <= 200; l++)
{
	if(document.getElementById(l)){
		document.getElementById(l).style.display = "none";
		}
}
//document.getElementById("submit").style.display = "none";
AssignPosition(i,d,dd,xxon,xx,yyon,yy);
dd.style.display = "block";
}

function ShowContent2(i,d,xon,x,yon,y) {
if(! CanDo) { return; }

var xxon = xon;
var xx = x;
var yyon = yon;
var yy = y;
var dd = document.getElementById(d);
AssignPosition(i,d,dd,xxon,xx,yyon,yy);
dd.style.display = "block";
}

function HideContent(d) {
if(! CanDo) { return; }
document.getElementById(d).style.display = "none";

}

function open_close(id) {
      if (document.getElementById(id).style.display == 'none') {
         document.getElementById(id).style.display = 'block';
      }  else {
         document.getElementById(id).style.display = 'none';
      }
   }


function ReverseContentDisplay(d) {
if(! CanDo) { return; }
var dd = document.getElementById(d);
if(dd.style.display == "none") {
   AssignPosition(dd);
   dd.style.display = "block";
   }
else { dd.style.display = "none"; }
}
//-->

	
	
	


//-->


