commonJS={
activateFacebook:function(path1) {  
	var path2="images/fb.png";
	var imgPath=path1+path2;
    document.images["facebookMouseOver"].src = imgPath; 
    return;

},
 deactivateFacebook:function(path1) { 
	var path2="images/fbb.png";
	var imgPath=path1+path2;
    document.images["facebookMouseOver"].src = imgPath; 
    return;
} ,
 activateTwitter:function(path1){  

	var path2="images/tw.png";
	var imgPath=path1+path2;
    document.images["twitterMouseOver"].src = imgPath; 
    return;

},
 deactivateTwitter:function(path1) {  
	var path2="images/twb.png";
	var imgPath=path1+path2;
    document.images["twitterMouseOver"].src = imgPath; 
    return;

} ,
 activateYouTube:function(path1) { 
	var path2="images/yt.png";
	var imgPath=path1+path2;
    document.images["youTubeMouseOver"].src = imgPath; 
    return;

},
 deactivateYouTube:function(path1) { 
	var path2="images/ytb.png";
	var imgPath=path1+path2;
    document.images["youTubeMouseOver"].src = imgPath; 
    return;

} 
,scroller1:function(){
		$("ul.scroller").simplyScroll({
		speed: 30
		});
}
,scroller2:function(){
	jQuery('#mycarousel').jcarouselCategory({scroll:5});
}

,disableCheckBoxes:function(selectedCheckBoxId){
	
	var array=$(':checkbox');
	if(document.getElementById(selectedCheckBoxId).checked===true){
		for(var i=0;i<array.length;i++){
			var checkBoxId="cross_sell_"+i;	
			if(selectedCheckBoxId!=checkBoxId){
			document.getElementById(checkBoxId).disabled=true;
			document.getElementById(checkBoxId).style.opacity="0.4";
		    var IECheckBox=document.getElementById(checkBoxId);
			IECheckBox.setAttribute("class", "CheckBoxClass");
				
			}
		}
	}else{
	for(var i=0;i<array.length;i++){
			var checkBoxId="cross_sell_"+i;	
			if(selectedCheckBoxId!=checkBoxId){
			document.getElementById(checkBoxId).disabled=false;
			document.getElementById(checkBoxId).style.opacity="1";
		    var IECheckBox=document.getElementById(checkBoxId);
			IECheckBox.setAttribute("class", "CheckBoxClassNoOpacity");
			}
		}
	}
}
,AddToCart:function(entitledItemId,quantity,status){
	var associatedProductID=null;
	var array=$(':checkbox');
	for(var i=0;i<array.length;i++){
		var checkBoxId="cross_sell_"+i;	
		if(document.getElementById(checkBoxId).checked===true){
		associatedProductID=document.getElementById(checkBoxId).value;	
		break;
		}
	}
	setCurrentId('productPageAdd2Cart');
	if(associatedProductID!=null){
	var crossSelledProduct="entitledItem_"+associatedProductID;
	categoryDisplayJS.AddAssociation2ShopCartAjax(entitledItemId,quantity,i);
	
	}else{
	categoryDisplayJS.Add2ShopCartAjax(entitledItemId,quantity,status);
	}
}
,showColor:function (colorName){
	document.getElementById('selectedColor').innerHTML=" - "+colorName;
}
, drawBox:function(linkId){
	var currentImage="colorThumbNailImage_"+linkId;
	if(document.getElementById(currentImage).style.border === "2px solid red"){		 	
		 	document.currentImage(currentImage).style.border = "none"; 
	} else{
		var divArray=$('.colorThumbNailImage'); 
		for(var index=0;index<divArray.length;index++){
			var imageId ="colorThumbNailImage_"+index;			 	
			if(index==linkId){	
				 
				 document.getElementById(imageId).style.border = "2px solid #ffffff"; 	 	
			}
			else{
				  document.getElementById(imageId).style.border = "none"; 
			}		 	
		 }
	 }
},
paintColorScroller:function (){
	 document.getElementById("colorScroller").style.visibility = "visible"; 
	}
,
paintBlouseScroller:function (){
	 document.getElementById("blouseScroller").style.visibility = "visible"; 
	},
	paintTabbedContainer:function (){
		 document.getElementById("tabbedContent").style.visibility = "visible"; 
		}	
,initDiscountDetails:function (){	
	
	if(document.getElementById("displaySection")!=null )  {
		document.getElementById("displaySection").style.display = "block";
	}
}
}
