<!--
function SetMenu(obj, status)
{
    //alert("obj = " + obj + " | status = " + status);
    document.getElementById(obj).src = "App_Thems/design/menu/"+status+"/"+obj+".gif";
}

function GoToGallery(gid)
{
	document.location.href = "Gallery.asp?g=" + gid ;
}

function ChangeClass(objId, class_name)
{
    document.getElementById(objId).className = class_name;
}

function DisplayFlashObj(ObjName, ObjWidth, ObjHeight)
{
    //alert(ObjName);
    document.open();
    document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='" + ObjWidth + "' height='" + ObjHeight + "' id='galleryMessy' align='middle'>");
    document.write("<param name='allowScriptAccess' value='sameDomain' />");
    document.write("<param name='movie' value='" + ObjName + "' />");
    document.write("<param name='quality' value='high' />");
    document.write("<param name='wmode' value='transparent' />");
    document.write("<param name='bgcolor' value='transparent' />");
    document.write("<embed src='" + ObjName + "' quality='high' bgcolor='transparent' width='" + ObjWidth + "' height='" + ObjHeight + "' name='sliderFader' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
    document.write("</object>");
    document.close();
}

function SetMediaType(ActiveObjId,PassiveObjId)
{
    document.getElementById(ActiveObjId + "_Btn").className='LittleButton';
    document.getElementById(PassiveObjId + "_Btn").className='ActiveLittleButton';
    document.getElementById(ActiveObjId).style.display='block';
    document.getElementById(PassiveObjId).style.display='none';
}

function PopCupon(CuponId)
{
    window.open("cupon.asp?cupID="+ CuponId, "_blank", "height=320, width=330,resizeable=0, location=0, menubar=0, resizable=1, status=0");
}


function SetNavigator(ObjId, Status)
{
    // get current URL in plain ASCII
	var URL = unescape(location.href)	
	var xstart = URL.lastIndexOf("/") + 1
	var xend = URL.length
	var PageUrl = URL.substring(xstart,xend)				
	PageUrl = PageUrl.toLowerCase();
	
	//remove .asp
	var sign = PageUrl.indexOf(".");
	PageUrl = PageUrl.substring(0,sign); 
	
	if(PageUrl == ObjId)
	{
	    //alert("PageUrl = " + PageUrl + " | ObjId = " +ObjId)
        var ImgUrl = "App_Thems/design/Navigator/" + ObjId + "_on.jpg";
        document.getElementById(ObjId).src = ImgUrl;
        document.getElementById("NavigatorImg").src = "App_Thems/design/Navigator/" + ObjId + ".jpg";
	}
	else
	{
		SetNavigatorImages(ObjId, Status);
	}					
}

function SetNavigatorImages(ObjId, Status)
{
    var ImgUrl = "App_Thems/design/Navigator/" + ObjId + "_" + Status + ".jpg";
    //alert(ImgUrl);
    document.getElementById(ObjId).src = ImgUrl;
    document.getElementById("NavigatorImg").src = "App_Thems/design/Navigator/" + ObjId + ".jpg";
}
-->