﻿function openwindow(url,name,iWidth,iHeight,iLanuageID,iFloor,iSlideID)
{
   var _res = savePosition(iLanuageID,iFloor,iSlideID);
   if(_res){
	   var url;                                  
	   var name;                           
	   var iWidth;                       
	   var iHeight;                      
	   var iTop = (window.screen.availHeight-30-iHeight)/2;        
	   var iLeft = (window.screen.availWidth-10-iWidth)/2;          
	   window.open(url,name,'height='+iHeight+',,innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no');
   }
   
}
function savePosition(languageID,floorID,slideID){
		$cookie = new Cookie('slidePosition');
		$cookie.write(languageID+"|"+ floorID + "|" + slideID);
		return true;
	}
