	jQuery(document).ready(function()
	{
			if (document.all && document.getElementById) {
				cssdropdownRoot = document.getElementById("nav");
				for (x=0; x<cssdropdownRoot.childNodes.length; x++) {
					node = cssdropdownRoot.childNodes[x];
					if (node.nodeName=="LI") {
					node.onmouseover=function() {
					this.className+=" over";
					}
					node.onmouseout=function() {
					this.className=this.className.replace("over", "");
					}
					}
				}
}

 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
	   anchor.getAttribute("rel") == "external")
	 anchor.target = "_blank";
 }
 
		getLoad();
		$('#imageGallery a').lightBox();
		$('#sideImage a').lightBox();
	});

	function  getLoad()
	{
		jQuery('#mycarousel').jcarousel({
			wrap: 'circular',
			visible:1,
			scroll:1,
			animation: 'slow',
			itemVisibleInCallback: {onBeforeAnimation: mycarousel_itemVisibleInCallback},
			itemVisibleOutCallback: {onAfterAnimation: mycarousel_itemVisibleOutCallback}
	    	});	
		

	
	}

	function mycarousel_itemVisibleInCallback(carousel, item, i, state, evt)
	{
	
	    var idx = carousel.index(i, mycarousel_itemList.length);
	    carousel.add(i, mycarousel_getItemHTML(mycarousel_itemList[idx - 1]));
	};

	function mycarousel_itemVisibleOutCallback(carousel, item, i, state, evt)
	{
	
	    	carousel.remove(i);

	};

	function mycarousel_getItemHTML(item)
	{
	    return '<table border=0 cellpadding=0 cellspacing=0><tr><td><a href = "'+path+mode+"/"+GalleryMenuName+"/"+primarymenu+"/"+item.foldId+"/"+item.foldernameus+'"><img src="' + item.url + '"  alt="' + item.title + '" /></a></td></tr></table>';
	};
	
	
	function addactive(id)
	{
		if($("#"+id).attr('class')!="sub2active")
		{	
			$("#"+id).addClass('sub3')
		}
	}

	function removeactive(id)
	{
		if($("#"+id).attr('class')=="sub2 sub3")
		{		
			$("#"+id).addClass('sub2')
			$("#"+id).removeClass('sub3')
		}
	}
	function contactsubmit(val)
	{
		alert(val)

	}
	
	
//target




