var openDiv = "";
var height = 320;
var allDialogs = [];
var seq = 0;
var dialog  = "";
function showProductDet(itId , lan){
	
	 try{
	 						
							if(dialog == "")createWait({draggable: true});
							else {
							 	 dialog = "";
								 createWait({draggable: true});
								}
	 					    aa = new myAjax();
							aa.xmlHttp.onreadystatechange=function()
							  {
								 //	if (obj.xmlHttp.readyState==1){alert("asd");}
 //alert(obj2.xmlHttp.readyState);
								 if (aa.xmlHttp.readyState == 4){dialog.setContent(aa.xmlHttp.responseText);}
									   
										
									  
								}
							url="products/prodAjax.php?iti="+itId+"&lan="+lan+"&time="+aa.time.getTime();
							aa.xmlHttp.open("GET",url,true);
							aa.xmlHttp.send(null);
							
	 }catch(e){alert(e.message)}
	
	
	}
	
	  function createWait(options) {
	
			   options = $.extend({title: "Product Details",modal:true,fixed: false}, options || {});
			   dialog = new Boxy('<div style="width:900px; height:400px; padding-top:50px" align="center" id="innerDt" ><img src="images/lightbox-ico-loading.gif" /></div>', options);
			   allDialogs.push(dialog); 
			 return false; 
			// document.getElementById("prodDt").style.display = "block";
		  }
function  nextImg( current , itId ){
	
	     					 
							obj = new AJAX();
							obj.xmlHttp.onreadystatechange=function()
							  {
									 
									if (obj.xmlHttp.readyState==1){
											 document.getElementById("npCell").innerHTML = 'Please wait<marquee direction="right" behavior="scroll" loop="-1" width="20" scrollamount="2">.....</marquee>';
										}

									if (obj.xmlHttp.readyState==4){
										  document.getElementById("npCell").innerHTML = obj.xmlHttp.responseText
										}
									   
										
									  
								}
							url="products/npAjax.php?curI="+current+"&iti="+itId+"&time="+obj.time.getTime();
							obj.xmlHttp.open("GET",url,true);
							obj.xmlHttp.send(null);	 
		 
		 }
function showBig(srcImg){
		 document.getElementById("mainImg").setAttribute("src" , "thumb.php?imgName="+srcImg+"&width=300&height=300&fType=1") ;
//		= ;
		}		 
