function P7_ExpMenu(){ //v1.1.0.2 by PVII-www.projectseven.com
 if(navigator.appVersion.indexOf("MSIE")==-1){return;}
 var i,k,g,lg,r=/\s*p7hvr/,nn='',c,cs='p7hvr',bv='p7menubar';
 for(i=0;i<1;i++){g=document.getElementById(bv+nn);if(g){
 lg=g.getElementsByTagName("LI");if(lg){for(k=0;k<lg.length;k++){
 lg[k].onmouseover=function(){c=this.className;cl=(c)?c+' '+cs:cs;
 this.className=cl;};lg[k].onmouseout=function(){c=this.className;
 this.className=(c)?c.replace(r,''):'';};}}}nn=i+1;}   
}

function P7_ExpMenu1(){ //v1.1.0.2 by PVII-www.projectseven.com

if(navigator.appVersion.indexOf("MSIE")==-1){return;}
 var i,k,g,lg,r=/\s*p7hvr1/,nn='',c,cs='p7hvr1',bv='p7menubar1';
 for(i=0;i<1;i++){g=document.getElementById(bv+nn);if(g){
 lg=g.getElementsByTagName("LI");if(lg){for(k=0;k<lg.length;k++){
 lg[k].onmouseover=function(){c=this.className;cl=(c)?c+' '+cs:cs;
 this.className=cl;};lg[k].onmouseout=function(){c=this.className;
 this.className=(c)?c.replace(r,''):'';};}}}nn=i+1;}
}

function selectTab(section) {
			    var c, cl;
			    c=document.getElementById(section).firstChild.className;
			    if (c.indexOf('selected') == -1) {
			    cl=(c)?c+' '+'selected':'selected';
			    document.getElementById(section).firstChild.className=cl;
			    }                                                                                                                                                                                                                                                                                               
			}
			
			function unselectTab(section) {
			    var c, cl, a, r = /\s*selected/;
			    a =  document.getElementById(section).firstChild;
			    c=document.getElementById(section).firstChild.className;
			    //alert("replace" + c.replace(r,''));                
			    document.getElementById(section).firstChild.className=(c)?c.replace(r,''):'';       
			}
            
            
            function roundedCorners() {
              var divs = document.getElementsByTagName('div');
              
              
              var rounded_divs = [];
              for (var i = 0; i < divs.length; i++) {
                if (/\brounded\b/.exec(divs[i].className)) {
                  rounded_divs[rounded_divs.length] = divs[i];
                }
              }
              for (var i = 0; i < rounded_divs.length; i++) {
                var original = rounded_divs[i];
                
                /* Make it the inner div of the four */
                original.className = original.className.replace('rounded', 'tr');
                
                var t = document.createElement('div');
                t.className = "t";
                
                
                /* Now create the outer-most div */
                /* Swap out the original (we'll put it back later) */
                original.parentNode.replaceChild(t, original);
                /* Create the two other inner nodes */
                var b = document.createElement('div');
                b.className = "b";
                var l = document.createElement('div');
                l.className = "l";
                var r = document.createElement('div');
                r.className = "r";
                
                var bl = document.createElement('div');
                bl.className = "bl";
                
                var tr = document.createElement('div');
                tr.className = 'tr';
                
                var tl = document.createElement('div');
                tl.className = "tl";
                var br = document.createElement('div');
                br.className = "br";
                
                t.appendChild(b);
                b.appendChild(l);
                l.appendChild(r);
                r.appendChild(bl);
                
                    
                
                
                /* Now glue the nodes back in to the document */
                bl.appendChild(br);
                
                
                br.appendChild(tl);
                tl.appendChild(original);
                t.onmouseover = function() {
                    selectTab(this.parentNode.id);
                };
                
                t.onmouseout = function() {
                    unselectTab(this.parentNode.id);
                };
                
              }
            }
    
        
        
        function topNavInit() {
	        /*P7_ExpMenu();
	        P7_ExpMenu1();
	        roundedCorners();    */
	        
	        
        }
        
        
        
        
        
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }


    
	function loader() {
        setOPC();
		topNavInit();
		SideNavInit();
		
		
        MM_preloadImages('/ss/images/common/tableftactive.gif', '/ss/images/common/tabrightactive.gif');

	}        
//If IE	
if (window.attachEvent)
window.attachEvent("onload", loader)
//If FF/Opera
if (window.addEventListener)
window.addEventListener("load", loader, false)	 