﻿ 

function windowLocation() 
{  
    window.location=window.location;
}  

 
    
     function productImageBig(imagePath, marginTop,marginLeft){ 
 
     var strFlash= '<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"315\" height=\"335\"><param name=\"movie\" value=\"flash/bigproductImage.swf?productImage='+imagePath+'&bgColor=0&marginTop='+marginTop+'&marginLeft='+marginLeft+'\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\"flash/bigproductImage.swf?productImage='+imagePath+'&bgColor=0&marginTop='+marginTop+'&marginLeft='+marginLeft+'\" width=\"315\" height=\"335\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" wmode=\"transparent\"></embed></object>';
       
        if (imagePath.toString().indexOf("../")>-1)// eng tarafından geliyorsa
    strFlash=  strFlash.replace("flash/bigproductImage.swf","../flash/bigproductImage.swf");
 
  	document.write(strFlash);
}


     function smallDetailImage(imagePath,pro_id, parent_id, marginTop,marginLeft){

  
 var strBgColor=0;
 if (pro_id==parent_id)
 {
    strBgColor =1; 
 }
  
  var strFlash='<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"75\" height=\"75\"><param name=\"movie\" value=\"flash/smallDetailImage.swf?productImage='+imagePath+'&bgColor='+strBgColor+'&pid='+pro_id+'&marginTop='+marginTop+'&marginLeft='+marginLeft+'\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\"flash/smallDetailImage.swf?productImage='+imagePath+'&bgColor='+strBgColor+'&pid='+pro_id+'&marginTop='+marginTop+'&marginLeft='+marginLeft+'\" width=\"75\" height=\"75\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" wmode=\"transparent\"></embed></object>';
  
  
   if (imagePath.toString().indexOf("../")>-1)// eng tarafından geliyorsa
    strFlash=  strFlash.replace("flash/smallDetailImage.swf","../flash/smallDetailImage.swf");
  
  
 	document.write(strFlash);
}
 

 
       
function ExpandCollapse(objID)
{
   var objDiv= document.getElementById(objID);
   var objDivOther;
   
   
   if (objID=="divFavori")
     objDivOther= document.getElementById("divSon");
   else
     objDivOther= document.getElementById("divFavori");
    
    
    if (objDiv.style.display=="none")
    {
        objDiv.style.display="block";
        objDivOther.style.display="none";
    }else  
    {
        objDiv.style.display="none"; 
    }

} 

function bigImg(strImg)
{   

    document.getElementById("ctl00_ContentPlaceHolder1_imgBig").src="images/proje/"+strImg; // tr için
  
  if(document.getElementById("ctl00_ContentPlaceHolder1_imgBig").src.toString().indexOf("/eng/")>-1)
  document.getElementById("ctl00_ContentPlaceHolder1_imgBig").src="../images/proje/"+strImg; // eng için
 
   
}
 



 
    
    isIE=document.all? 1:0 
    function numCheck(e)
    { 
        keyEntry = !isIE? e.which:event.keyCode; 
        if((keyEntry < '48') || (keyEntry > '57')) {return false; }
    }   
    
    
    
     