function openPopup(url, name){
window.open(url, name , "width=700, height=600, left=10, top=10, location=no, menubar=no, resizable=no, scrollbars=yes, status=no, toolbar=no, fullscreen=no");
}

function openmap(id)
{
	//alert(url);
	var p =window.open(id,'Structure','left=20, top=30,width=900,height=650,status=yes,scrollbars=yes,resizable=no');
	}
	
	function PrintThisPage(content)
	{
		var url = "printerfriendly.aspx?content=" + content;
		var p = window.open(url, "printFriendly", "width=700, height=600, left=10, top=10, location=no, menubar=no, resizable=no, scrollbars=yes, status=no, toolbar=no, fullscreen=no");
	}
	function GetData(content)
	{
		var content = document.getElementById(content);
		if(content == null)
			return("");
		return(content.innerHTML);
	}
	
	function openBrochure(url, name){
window.open(url, name , "width=900, height=720, left=10, top=10, location=no, menubar=no, resizable=no, scrollbars=yes, status=no, toolbar=no, fullscreen=no");
}

function openPhotogallery(url, name){
window.open(url, name , "width=716, height=830, left=10, top=10, location=no, menubar=no, resizable=no, scrollbars=yes, status=no, toolbar=no, fullscreen=no");
}
function openVideoClips(url, name){
window.open(url, name , "width=650, height=620, left=10, top=10, location=no, menubar=no, resizable=no, scrollbars=yes, status=no, toolbar=no, fullscreen=no");
}

		
function VerifyMsg(f_ld,c_nt,cnt_fld) {

	var len = f_ld.value.length
	var cl

	if ((len == 1) && (f_ld.value.substring(0, 1) == " ")) {
		f_ld.value = ""
		len = 0
	}
	if (len > (c_nt-10)) {
		f_ld.value = f_ld.value.substring(0, c_nt)
		cl = 0
	}
	else {
		cl = c_nt - len
	}
	eval(cnt_fld).value = cl
}
 




//Flash Plugin checking script 
        var MM_contentVersion = 6;
        var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
        if ( plugin ) {
                          var words = navigator.plugins["Shockwave Flash"].description.split(" ");
                          for (var i = 0; i < words.length; ++i)
                          {
                          if (isNaN(parseInt(words[i])))
                          continue;
                          var MM_PluginVersion = words[i]; 
                          }
                 var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
        }
        else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
           && (navigator.appVersion.indexOf("Win") != -1)) {
                  document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
                  document.write('on error resume next \n');
                  document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
                  document.write('</SCR' + 'IPT\> \n');
        }
     
// --------------------------------------------------------------

   
  function expandCreative(d) {  
   document.getElementById(d).style.height = "458px"; 
    document.getElementById(d).style.width = "973px"; 
  }  
  function collapseCreative(d) {  
    document.getElementById(d).style.height = "336px";
	 document.getElementById(d).style.width = "973px"; 
  }  

 //------------------------Flash hover script End -----------------


function imgOver(imageID, imageOver, imgOut){
    var currentimage =  document.getElementById(imageID).getAttribute("src");
    imageOver = "images/" + imageOver ;
    imgOut = "images/" + imgOut ;    
    var matchPos1 = currentimage.search(imageOver);
    
    if(matchPos1 !=  -1){
    document.getElementById(imageID).setAttribute("src",imgOut );    
    }
    else{
   document.getElementById(imageID).setAttribute("src", imageOver);  
    }   
}

function imgOut(imageID, imageOver, imgOut){
    var currentimage =  document.getElementById(imageID).getAttribute("src");
    imgOut = "images/" + imgOut ;    
    imageOver = "images/" + imageOver ;
    var matchPos1 = currentimage.search(imgOut);
    
    if(matchPos1 !=  -1){
    document.getElementById(imageID).setAttribute("src", imageOver);
    }
    else{   
    document.getElementById(imageID).setAttribute("src", imgOut);
    }
}


