function openWin(image,title){	aWindow=window.open("img_large.php?img="+image+"&title="+title,"","toolbar=no,width=400,height=400,status=no,scrollbars=no,resize=no,menubars=no");	aWindow.focus();}function openWin2(url,w,h){	aWindow=window.open(url,"","toolbar=no,width="+w+",height="+h+",status=no,scrollbars=no,resize=no,menubars=no");	aWindow.focus();}function openWin3(url,w,h,title){	aWindow=window.open(url,"","toolbar=no,width="+w+",height="+h+",status=no,scrollbars=yes,resize=no,menubars=no");	aWindow.focus();}function openLargeImage(url){	aWindow=window.open(url,"","toolbar=no,width=400,height=400,status=no,scrollbars=no,resize=no,menubars=no");	aWindow.focus();}function openBookmark(aURL){	aWindow=window.open(aURL,"","toolbar=no,width=400,height=100,status=no,scrollbars=no,resize=no,menubars=no");	aWindow.focus();}function openVideo(aURL){	aWindow=window.open(aURL,"","toolbar=no,width=400,height=400,status=no,scrollbars=no,resize=no,menubars=no");	aWindow.focus();}function openMatchUs(aURL){	aWindow=window.open(aURL,"","toolbar=no,width=400,height=200,status=no,scrollbars=no,resize=no,menubars=no");	aWindow.focus();}function submitFormTA() {	updateRTE('ta');	return true;}function setImage(string) {	document.getElementById('previewImage').src = 'File:\/\/' + string;}function checkSelectedOption(value,form,warning){	if( value != -1 )	{		form.catid.value = value;		form.submit();	}	else	{		alert(warning);	}}function previewImage(string){			document.getElementById('previewImage').src = 'File:\/\/' + string;	}function previewImageServer(string){			if (string=="")		document.getElementById('previewImage').src = "../catimages/blank.gif";		else		document.getElementById('previewImage').src = "../catimages/" + string;	}isNS4 = (document.layers) ? true : false;isIE4 = (document.all && !document.getElementById) ? true : false;isIE5 = (document.all && document.getElementById) ? true : false;isNS6 = (!document.all && document.getElementById) ? true : false;function switchDiv(strDivName,bolVisible){ //identify the element based on browser type if (isNS4) {   objElement = document.layers[strDivName]; } else if (isIE4) {   objElement = document.all[strDivName]; } else if (isIE5 || isNS6) {   objElement = document.getElementById(strDivName); }  if(isNS4){     if(!bolVisible) {       objElement.visibility ="hidden"     } else {       objElement.visibility ="visible"     }      }else{     if(!bolVisible) {       objElement.style.visibility = "hidden";     } else {       objElement.style.visibility = "visible";     } }}function removeall(checkboxId){  	var the_box = eval("window.document.itemForm." + checkboxId);	for (var i=0;i<the_box.length;i++) 	{		the_box[i].checked=false;  	}  	the_box[0].checked=true;}function resetfirst(checkboxId){  	var the_box = eval("window.document.itemForm." + checkboxId);  	the_box[0].checked=false;}function collapse_all (n_index, n_depth) {	var o_tree = TREES[n_index ? n_index : 0];	if (!n_depth) n_depth = 1;	if (!o_tree)		alert("Tree is not initialized yet");	var a_nodes = o_tree.a_nodes;	for (var i = a_nodes.length - 1; i >= 0; i--)		if (a_nodes[i].n_depth >= n_depth && a_nodes[i].open)			a_nodes[i].open(1, 1);	o_tree.ndom_refresh();}function expand_all (n_index, n_depth) {	var o_tree = TREES[n_index ? n_index : 0];	if (!o_tree)		alert("Tree is not initialized yet");	var a_nodes = o_tree.a_nodes;	for (var i = 0; i< a_nodes.length; i++)		if (n_depth == null || a_nodes[i].n_depth <= n_depth)			a_nodes[i].open(0, 1);	o_tree.ndom_refresh();}/************************************************ DD Tab Menu script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)* This notice MUST stay intact for legal use* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code***********************************************///Set tab to intially be selected when page loads://[which tab (1=first tab), ID of tab content to display (or "" if no corresponding tab content)]:var initialtab=[1, "sc1"]//Turn menu into single level image tabs (completely hides 2nd level)?var turntosingle=0 //0 for no (default), 1 for yes//Disable hyperlinks in 1st level tab images?var disabletablinks=0 //0 for no (default), 1 for yes////////Stop editting////////////////var previoustab=""if (turntosingle==1)document.write('<style type="text/css">\n#tabcontentcontainer{display: none;}\n</style>')function expandcontent(cid, aobject){if (disabletablinks==1)aobject.onclick=new Function("return false")if (document.getElementById && turntosingle==0){highlighttab(aobject)if (previoustab!="")document.getElementById(previoustab).style.display="none"if (cid!=""){document.getElementById(cid).style.display="block"previoustab=cid}}}function highlighttab(aobject){if (typeof tabobjlinks=="undefined")collectddtabs()for (i=0; i<tabobjlinks.length; i++)tabobjlinks[i].className=""aobject.className="current"}function collectddtabs(){var tabobj=document.getElementById("ddtabs")tabobjlinks=tabobj.getElementsByTagName("A")}function do_onload(){collectddtabs()expandcontent(initialtab[1], tabobjlinks[initialtab[0]-1])}if (window.addEventListener)window.addEventListener("load", do_onload, false)else if (window.attachEvent)window.attachEvent("onload", do_onload)else if (document.getElementById)window.onload=do_onload/* * DO NOT REMOVE THIS NOTICE * * PROJECT:   mygosuMenu * VERSION:   1.3.3 * COPYRIGHT: (c) 2003,2004 Cezary Tomczak * LINK:      http://gosu.pl/dhtml/mygosumenu.html * LICENSE:   BSD (revised) */function ClickShowHideMenu(id) {    this.box1Hover = true;    this.box2Hover = true;    this.highlightActive = false;    this.init = function() {        if (!document.getElementById(this.id)) {            alert("Element '"+this.id+"' does not exist in this document. ClickShowHideMenu cannot be initialized");            return;        }        this.parse(document.getElementById(this.id).childNodes, this.tree, this.id);        this.load();        if (window.attachEvent) {            window.attachEvent("onunload", function(e) { self.save(); });        } else if (window.addEventListener) {            window.addEventListener("unload", function(e) { self.save(); }, false);        }    }    this.parse = function(nodes, tree, id) {        for (var i = 0; i < nodes.length; i++) {            if (nodes[i].nodeType != 1) {                continue;            }            if (nodes[i].className) {                if ("box1" == nodes[i].className.substr(0, 4)) {                    nodes[i].id = id + "-" + tree.length;                    tree[tree.length] = new Array();                    eval('nodes[i].onmouseover = function() { self.box1over("'+nodes[i].id+'"); }');                    eval('nodes[i].onmouseout = function() { self.box1out("'+nodes[i].id+'"); }');                    eval('nodes[i].onclick = function() { self.box1click("'+nodes[i].id+'"); }');                }                if ("section" == nodes[i].className) {                    id = id + "-" + (tree.length - 1);                    nodes[i].id = id + "-section";                    tree = tree[tree.length - 1];                }                if ("box2" == nodes[i].className.substr(0, 4)) {                    nodes[i].id = id + "-" + tree.length;                    tree[tree.length] = new Array();                    eval('nodes[i].onmouseover = function() { self.box2over("'+nodes[i].id+'", "'+nodes[i].className+'"); }');                    eval('nodes[i].onmouseout = function() { self.box2out("'+nodes[i].id+'", "'+nodes[i].className+'"); }');                }            }            if (this.highlightActive && nodes[i].tagName && nodes[i].tagName == "A") {                if (document.location.href == nodes[i].href) {                    nodes[i].className = (nodes[i].className ? ' active' : 'active')                }            }            if (nodes[i].childNodes) {                this.parse(nodes[i].childNodes, tree, id);            }        }    }    this.box1over = function(id) {        if (!this.box1Hover) return;        if (!document.getElementById(id)) return;        document.getElementById(id).className = (this.id_openbox == id ? "box1-open-hover" : "box1-hover");    }    this.box1out = function(id) {        if (!this.box1Hover) return;        if (!document.getElementById(id)) return;        document.getElementById(id).className = (this.id_openbox == id ? "box1-open" : "box1");    }    this.box1click = function(id) {        if (!document.getElementById(id)) {            return;        }        var id_openbox = this.id_openbox;        if (this.id_openbox) {            if (!document.getElementById(id + "-section")) {                return;            }            this.hide();            if (id_openbox == id) {                if (this.box1hover) {                    document.getElementById(id_openbox).className = "box1-hover";                } else {                    document.getElementById(id_openbox).className = "box1";                }            } else {                document.getElementById(id_openbox).className = "box1";            }        }        if (id_openbox != id) {            this.show(id);            var className = document.getElementById(id).className;            if ("box1-hover" == className) {                document.getElementById(id).className = "box1-open-hover";            }            if ("box1" == className) {                document.getElementById(id).className = "box1-open";            }        }    }    this.box2over = function(id, className) {        if (!this.box2Hover) return;        if (!document.getElementById(id)) return;        document.getElementById(id).className = className + "-hover";    }    this.box2out = function(id, className) {        if (!this.box2Hover) return;        if (!document.getElementById(id)) return;        document.getElementById(id).className = className;    }    this.show = function(id) {        if (document.getElementById(id + "-section")) {            document.getElementById(id + "-section").style.display = "block";            this.id_openbox = id;        }    }    this.hide = function() {        document.getElementById(this.id_openbox + "-section").style.display = "none";        this.id_openbox = "";    }    this.save = function() {        if (this.id_openbox) {            this.cookie.set(this.id, this.id_openbox);        } else {            this.cookie.del(this.id);        }    }    this.load = function() {        var id_openbox = this.cookie.get(this.id);        if (id_openbox) {            this.show(id_openbox);            document.getElementById(id_openbox).className = "box1-open";        }    }    function Cookie() {        this.get = function(name) {            var cookies = document.cookie.split(";");            for (var i = 0; i < cookies.length; i++) {                var a = cookies[i].split("=");                if (a.length == 2) {                    a[0] = a[0].trim();                    a[1] = a[1].trim();                    if (a[0] == name) {                        return unescape(a[1]);                    }                }            }            return "";        }        this.set = function(name, value) {            document.cookie = name + "=" + escape(value);        }        this.del = function(name) {            document.cookie = name + "=; expires=Thu, 01-Jan-70 00:00:01 GMT";        }    }    var self = this;    this.id = id;    this.tree = new Array();    this.cookie = new Cookie();    this.id_openbox = "";}if (typeof String.prototype.trim == "undefined") {    String.prototype.trim = function() {        var s = this.replace(/^\s*/, "");        return s.replace(/\s*$/, "");    }}