/*function smartRollover() {   
    if(document.getElementsByTagName) {   
        var hrefs = document.getElementsByTagName("a"); 
		
        for(var i=0; i < hrefs.length; i++) {  
		
			var hrefs_child = hrefs[i].childNodes[0];
			
			if(hrefs_child.nodeName == "IMG"){
				
				if(hrefs_child.getAttribute("src").match("_off."))   
				{   
					hrefs_child.onmouseover = function() {   
						this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));   
					}   
					hrefs_child.onmouseout = function() {   
						this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));   
					}   
				}
			}
			
               
        }   
    }   
}*/ 

function smartRollover() {  
    if(document.getElementsByTagName) {  
        var images = document.getElementsByTagName("img");  
        for(var i=0; i < images.length; i++) {  
            if(images[i].getAttribute("src").match("_off."))  
            {  
                images[i].onmouseover = function() {  
                    this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));  
                }  
                images[i].onmouseout = function() {  
                    this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));  
                }  
            }  
        }  
    }  
} 
if(window.addEventListener) {  
    window.addEventListener("load", smartRollover, false);  
}  
else if(window.attachEvent) {  
    window.attachEvent("onload", smartRollover);  
} 

if(window.addEventListener) {   
    window.addEventListener("load", smartRollover, false);   
}   
else if(window.attachEvent) {   
    window.attachEvent("onload", smartRollover);   
} 

/*prof*/

$(function(){
	for(var i=0 ; i<7 ; i++){
		var sty = "#sty0" + i;
		$(sty).mouseover(function(){
			var prof = this.getAttribute("id").replace("sty", "#prof");
			$(prof).css('visibility','visible');
		}).mouseout(function(){
			var prof = this.getAttribute("id").replace("sty", "#prof");
			$(prof).css('visibility','hidden');
		})
	/*$("#sty01").mouseover(function(){
		$("#prof01").css('visibility','visible');
	}).mouseout(function(){
		$("#prof01").css('visibility','hidden');
	})*/
	}
})

/*toggle*//*
jQuery(function($){

   $("#menu01_btn")
     .click(function () {
       $("#menu01")
         .slideToggle("normal");
     })
	 
	 $("#menu02_btn")
     .click(function () {
       $("#menu02")
         .slideToggle("normal");
     })
	 
	 $("#menu03_btn")
     .click(function () {
       $("#menu03")
         .slideToggle("normal");
     })
	 
	 $("#menu04_btn")
     .click(function () {
       $("#menu04")
         .slideToggle("normal");
     })
	 
	$("#shopping_btn")
     .click(function () {
       $("#shopping")
         .slideToggle("normal");
     })

 });*/