function toggle(obj, imgpath) {

  	obj.src = imgpath;
}


// Main navigation with hover effect for subcategories
function sfHover() {
	var navi = document.getElementById("sfNavi");

	if (navi) {
		var sfEls = document.getElementById("sfNavi").getElementsByTagName("LI");

	    for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}

			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
}


if (window.attachEvent) window.attachEvent("onload", sfHover);

// Cliplister
function clHandleFrame(iframe)
	{
		if( iframe.id.substr(0,10)=="cliplister") {
			var test = new Image();
			test.onload = function() {
				if (test.width<2) {
					iframe.style.height="0";
					iframe.style.width="0";
					iframe.style.visibility="hidden";
				}
			}
			var s = iframe.src.replace(/\/ind/g,"");
			test.src = s.replace(/playBtn/g,"play")+"/cx";
		}
	}

	function cliplister()
	{
		var iframes = document.getElementsByTagName("iframe");
		var i;
		for(i=0;i<iframes.length;i++) {
			clHandleFrame(iframes[i]);
		}
	}

