//open window
openwin = new Array() ;
function MM_openBrWindow(theURL,winName,features) { //v2.0
	own = winName ;
	openwin[own]=window.open(theURL,winName,features);
	openwin[own].focus();
}

//Rollover img change
function smartRollover() {
 if(document.getElementsByTagName) {
		
		
		
 //var h2count = document.getElementsByTagName("h2");  
	//var imageObj = document.createElement("img");
	//imageObj.id = "bgLocalnavi";  
	//imageObj.src= "../common/headline1.gif";
  //for(var i=0; i < h2count.length; i++) {
   //if(h2count[i].className.match("headline1"))
   //{
				//var h2Obj=h2count[i];
				//alert(h2count[i]) ; 
  		//document.h2Obj.appendChild(imageObj);
				//document.getElementsByTagName("h2").appendChild(imageObj);
    //→	h2count[i].onmouseover = function() {
    //→ this.appendChild(imageObj);
    //→}
   //}
  //}  
					
  var images = document.getElementsByTagName("img");
  for(var i=0; i < images.length; i++) {
   if(images[i].className.match("over"))
   {
    images[i].onmouseover = function() {
     this.setAttribute("src", this.getAttribute("src").replace(".gif", "_over.gif"));
     this.setAttribute("src", this.getAttribute("src").replace(".jpg", "_over.jpg"));
    }
    images[i].onmouseout = function() {
     this.setAttribute("src", this.getAttribute("src").replace("_over.gif", ".gif"));
     this.setAttribute("src", this.getAttribute("src").replace("_over.jpg", ".jpg"));
    }
   }
  }
 }
}

//inputAreaColor
function inputAreaColor() {
	var inputAreaID="SS_searchQuery";
	var inputStr="Keywords";
	var OnColor="#000000";
	var OffColor="#999999";
	var OnBgColor="#FFFFFF";
	var OffBgColor="#e1e1e1";
	if(document.getElementById(inputAreaID)) {
	 
		//initialize
		document.getElementById(inputAreaID).value=inputStr;
		document.getElementById(inputAreaID).style.color=OffColor;
		document.getElementById(inputAreaID).style.backgroundColor=OffBgColor;
		
		//onfocus
		document.getElementById(inputAreaID).onfocus =function() {
			if(this.value==inputStr){
				this.value='';
			}
			this.style.color=OnColor;
			this.style.backgroundColor=OnBgColor;
		}
		
		//onblur
		document.getElementById(inputAreaID).onblur =function() {
		this.style.backgroundColor=OnBgColor;
			if(this.value==''){
				this.value=inputStr;
				this.style.color=OffColor;
				this.style.backgroundColor=OffBgColor;
			}else{
				this.style.color=OnColor;
				this.style.backgroundColor=OnBgColor;
			}
		}
	}
}



//Ir Top 
function oc(num){
  if(num=="1"){
  document.getElementById("onRelease").style.display = "block";
  document.getElementById("onNews").style.display = "none";
  }
  if(num=="2"){
  document.getElementById("onRelease").style.display = "none";
  document.getElementById("onNews").style.display = "block";
  }
  
}

  

   




if (window.addEventListener) {
window.addEventListener("load", smartRollover, false);
window.addEventListener("load", inputAreaColor, false);
//window.addEventListener("load", statusHref, false);
}
if (window.attachEvent) {
window.attachEvent("onload", smartRollover);
window.attachEvent("onload", inputAreaColor);
//window.attachEvent("onload", statusHref);
}



