 // JavaScript Document
 // http://jscompress.com/ - minify this javascript
 //
//Latest video gakllery widget//
var hotVideos = function(){ 
	this.title= "Video Gallery";
	this.totalcount= "8";
	this.jsonData=null;
	this.itemArray=null;
	this.resturl='http://static.sify.com/cms/video/';
	this.thumburl='http://static.sify.com/cms/';
	this.playerurl='/watch';
    this.category = "";
    this.optionsTitle =['Latest Videos','Most Viewed Videos','Featured Videos','Hollywood','Bollywood','Kollywood'];
		
	this.setUrl = function(url){
		this.url=url;	
	}
	
	this.setContainer = function(container){
		this.container=$('#'+container);	
	}
	
	this.setTitle = function(title){
		this.title=title;	
	}

    this.setCategory = function(cat){
		this.category=cat;
	}
	
	this.setCount = function(count){
		this.count=count;	
	}
	
	this.setOptions = function(options){
		this.options=options;	
	}
	this.setTpl = function(tpl){
		this.tpl=tpl;	
	}
	  	
    this.jsonurl = function(opts){
		 var opt="";
		  jQuery.each(opts, function(i, item){
				 opt += item + '|' ;
				 });
		return opt;
		}
		
	
	this.createNavigation = function(){
        var head="";		
		jQuery.each(this.optionsTitle, function(i, item){
			head +='<li class="menuItem"><span class="Item'+i+'">'+ item +'</span></li>'; 
		 }); 
		return '<div id="boxLeft"><ul class="menus">' + head +'</ul></div>';	
	}
		
	
	this.BuildWidget=function(nav, galItems){      
		 var bodyContanierStart='<div id="boxRight"><div  id="videosList">';
		 var bodyContanierEnd='</div></div> ';
		 this.container.html(  nav +  bodyContanierStart +   galItems +   bodyContanierEnd  );
	}
 	
	this.getData= function(){

        var optionsOrder =['CreatedDate','Views','CreatedDate', 'CreatedDate', 'CreatedDate','CreatedDate'];

        var optionsOrderBy =['desc','asc','desc','desc','desc','desc'];
                     
       // var categories= [this.category,this.category,this.category,'Auto']
        var categories= [this.category,this.category,'Featured Videos','hollywood','bollywood','kollywood']
		this.container.html( '<div class="loader">Loading..</div>');
       for(i=0;i<categories.length;i++){
                this.jsonurl ='/getdata.php?opt=Category:' + categories[i]+'&cnt=8&orderBy='+optionsOrder[i]+'&orderByDir'+optionsOrderBy[i];
                var obj=this;
                var galItems="";
                var js =$.getJSON(this.jsonurl, function(json){
                    if(json.total > 0) {
                     $.each(json.item, function(i,item){
                     galItems += obj.constructData(item, i);
                   });
                    } else {  galItems = "<ul class='videos'><span class='homeMore'>The Video you are searching for is currently not available</span> </ul>"; }
                    obj.getData(galItems);
                });	

       }

        
			this.getData = function(data){           
				 this.BuildWidget (this.createNavigation(), data);
				 this.applyEffects();
			}
			
		 
		   this.constructData = function(item, i){
			   startUL=''; endUL='';
		 		if ( i == 0 || (i % this.count) == 0 ) startUL='<ul class="videos">';				
				if((i % this.count) == this.count-1)  endUL='<a href="/search/'+this.category +'/page/1" class="homeMore">More &gt;&gt;</a></ul>';
				return startUL +'<li class="videoItem"><span id="videoBox"><a href="'+  this.playerurl +'/'+ item.UrlTitle +'" ><img src="'+ this.thumburl + 'thumbnail/' + item.Thumbnail +'" width="120" height="100" border="0" class="videoImage"></a>				<a href="'+  this.playerurl + '/'+ item.Id +'/'+ item.UrlTitle +'" class="videoTitle">'+ item.Title +'</a></span></li>'+endUL;
			} 
		
		
		this.applyEffects= function(){
           var bgcolor = ['#D2A741','#C16204','#93B159','#D2A741','#C16204','#93B159'];
            $(".menuItem:first").addClass("selected");
              $(".videos:first").fadeIn("slow");
              $(".menuItem").each(function (index, domEle) {
                 $(domEle).hover(function () {
                    $(".menuItem").removeClass("selected");
                    $(".videos").hide();
                    if ($(".videos").eq(index).is(":hidden")) {
                        $(this).addClass("selected");
                        $('.videoItem').css({'background-color' : bgcolor[index]});
                        $(".videos").eq(index).fadeIn("slow");
                    }
                  },  function () {});
               });
									 
	}
		
 }	 
 

 
 }
 
 


 //Video gallery widget//
  
  
 this.VideoGallery = function(){	
	this.title= "Video Gallery";
	this.count= "5";
    this.offset= "0";
	this.jsonData=null;
	this.itemArray=null;
	this.resturl='http://static.sify.com/cms/video/';
	this.thumburl='http://static.sify.com/cms/';
	this.playerurl='/watch';
    this.ShowOptions ="";
    this.ShowAdv =true;
	this.setUrl = function(url){
		this.url=url;	
	}
	
	this.setContainer = function(container){
		this.container=$('#'+container);	
	}
	
	this.setTitle = function(title){
		this.title=title;	
	}
	
	this.setCount = function(count){		
		this.count=Number(count);	
	}

    this.setOffset = function(offset){
		this.offset=Number(offset);
	}

	this.setShowOptions = function(options){
		this.ShowOptions=options;
	}

	this.setOptions = function(options){
		this.options=options;	
	}
	this.setTpl = function(tpl){
		this.tpl=tpl;	
	}
	  	
    this.jsonurl = function(opts){
		 var opt="";
		  jQuery.each(opts, function(i, item){
				 opt += item + '|' ;
				 });
		return opt;
		}
	this.createNavigation = function(){	 
		var head='';
           var moreLink = this.options[0].replace( ":", "/" );
			head +='<a href="/search/'+moreLink+'/page/1" class="menu1"   rel="'+ moreLink +'">more &gt;&gt;</a>';
		 return '<div id="videoGalleryMenuItems" >' + head +'</div>';
	}
	
	
	this.BuildWidget=function(nav, galItems){ 
		 var bodyContanierStart='<div id="videoGallery">';
		 var bodyContanierEnd='</div>';
		 this.container.html(  nav +  bodyContanierStart +   galItems +   bodyContanierEnd  );
	}
	
	 
	this.getData= function(){ 
		this.container.html( '<div class="loader">Loading Gallery....</div>');
		this.jsonurl = this.url+'?opt=' + this.options[0]+'&cnt='+this.count+'&offset='+this.offset;
		 
		var obj=this;
		var galItems="";
		var js =$.getJSON(this.jsonurl, function(json){
		if(json.total > 0) {
 			 $.each(json.item, function(i,item){	
 			 galItems += obj.constructData(item, i);			 
           }); } else {  galItems = "There are no related videos available for the current selection"; }
			 
		obj.getData(galItems);
        });	
		
		
			this.getData = function(data){
				 this.BuildWidget (this.createNavigation(), data);
				 this.addControls();
			}
			this.constructData = function(item, i){
			   startUL=''; endUL='';
                
                if ( i == 0 || (i % this.count) == 0 ) startUL='<ul>';
				if((i % this.count) == this.count-1)  endUL='</ul>';
				//return startUL +'<li><a href="'+  this.playerurl   +'/'+ item.UrlTitle +'" ><img src="'+ this.thumburl + 'thumbnail/' + item.Thumbnail +'"  border="0" class="videoImage"></a><a href="'+  this.playerurl + '/'+ item.Id +'/'+ item.UrlTitle +'" class="videoTitle">'+ item.Title +'</a><span class="desc"> From: '+ item.Source +'<br>Channel: '+ item.Channel +' <br></span></li>'+endUL;
                return startUL +'<li><a href="'+  this.playerurl   +'/'+ item.UrlTitle +'" ><img src="'+ this.thumburl + 'thumbnail/' + item.Thumbnail +'"  border="0" class="videoImage"></a><a href="'+  this.playerurl + '/'+ item.Id +'/'+ item.UrlTitle +'" class="videoTitle">'+ item.Title +'</a></li>'+endUL;
			}
			
		this.addControls = function(){
		  $(".menu1").each(function (index, domEle) {
			$(domEle).click(function () {	
			 obj.getControlData(domEle);
 			$(".menu1").removeClass("menu1selected");
			$(".menu1").eq(index).addClass("menu1selected");
			 
			});
		});
		}
		
		this.getControlData= function(domEle){			
			this.container.html('<div class="loader">Loading..</div>');
			var jsonURL = this.url+'?opt=' + domEle.rel +'&cnt='+this.count+'&offset='+this.offset;
		    var obj=this;
			galItems="";
			var js =$.getJSON(jsonURL, function(json){
			if(json.total > 0) {							
 			 $.each(json.item, function(i,item){	
 			 galItems += obj.constructData(item, i);				 
           }); 
			} else {  galItems = "There are no related videos available for the current selection"; }
			  
		   obj.getData(galItems);
          });	
		
		 this.builGallery= function(galData){		 
		 $('#videoGallery').html(galData);
		 }
			
		}
			
	}
		
 }
 
 
 
 
 //Video Search widget//
  
  
 this.VideoSearch = function(){	
	this.title= "Video Gallery";
	this.count= "5";	
	this.TotalCount= "5";	
	this.cur_p= 0;
	this.jsonData=null;
	this.itemArray=null;
	this.resturl='http://static.sify.com/cms/video/';
	this.thumburl='http://static.sify.com/cms/';
	this.playerurl='/watch';
	this.pgniWidth= 5;
    this.oldQry ="";
	this.setUrl = function(url){
		this.url=url;	
	}
	
	this.setContainer = function(container){
		this.container=$('#'+container);	
	}
	
	this.setTitle = function(title){
		this.title=title;	
	}
	
	this.setCount = function(count){		
		this.count=Number(count);	
	}
	this.setTotalCount = function(Total){		
		this.TotalCount=Number(Total);	
	}
	
	this.setOptions = function(options){
		this.options=options;	
	}

    this.setOldQry = function(oldQry){
		this.oldQry=oldQry;
	}

	this.setTpl = function(tpl){
		this.tpl=tpl;	
	}
	
	this.setCurPage = function(pg){
		this.cur_p=Number(pg);	
	}
	  	
    this.jsonurl = function(opts){
		 var opt="";
		  jQuery.each(opts, function(i, item){
				 opt += item + '|' ;
				 });
		return opt;
		}
	this.createNavigation = function(){	 
		var head='', prev ='', next ='',seprator,Lim_s, Lim_e ;
        if(this.TotalCount!=0){
		var cnt = (this.TotalCount!=0) ? Number(Math.ceil(this.TotalCount/this.count)) : 0;
        Lim_s = (Number(this.cur_p - this.pgniWidth) < 0 ) ? 0 : Number(this.cur_p - this.pgniWidth);
		Lim_e =  (this.cur_p < this.pgniWidth) ? Number(this.cur_p + 2* this.pgniWidth) :Number(this.cur_p + this.pgniWidth) ;
		Lim_e = (Lim_e > Math.ceil(this.TotalCount/this.count) ) ? Math.ceil(this.TotalCount/this.count): Lim_e; 
		for(i=Lim_s;i<Lim_e;i++){	
			 k= i+1;
		    seprator = (k == Lim_e) ? "" :'|';
            var selected = (i==this.cur_p )? '<b>'+k+'</b>': k;
            var selectedInt = k;
			head +='<a href="/search/'+this.oldQry+'/page/'+selectedInt+'" class="menu1"   rel="'+ i +'">'+ selected +'</a> <span class="pipe">'+ seprator+'</span> ';
		 } 
		  prev = (this.cur_p == 0 ) ? "" : '<a href="/search/'+this.oldQry+'/page/'+(this.cur_p )+'" class="menu1"   rel="'+ (this.cur_p - 1) +'">&lt;&lt;Prev</a><span class="pipe">'+ seprator+'</span> ';
		 next = ( this.cur_p == cnt -1 ) ? "" : '<a href="/search/'+this.oldQry +'/page/'+(this.cur_p + 2)+'" class="menu1"   rel="'+ (this.cur_p + 1) +'">Next&gt;&gt;</a> <span class="pipe">'+ seprator+'</span> ';
        }
		return '<div id="videoGallerySearchMenuItems" >' + prev + head + next + '</div>';
	}
	
	
	this.BuildWidget=function(nav, galItems){		
		 var bodyContanierStart='<div id="videoGallery">';
		 var bodyContanierEnd='</div>';		 
		 this.container.html(  nav +  bodyContanierStart +   galItems   + bodyContanierEnd );
	}
	
	
	 
	 
	this.getData= function(){ 
		var obj=this;
		var galItems="";
		var offset = this.cur_p * this.count;
		this.container.html( '<div class="loader">Loading..</div>');		
		this.jsonurl = this.url+'?opt=' + this.options +'&cnt='+this.count+'&offset='+offset;		
		var js =$.getJSON(this.jsonurl, function(json){		
		obj.setTotalCount(json.total);
		if(json.total > 0) {
 			 $.each(json.item, function(i,item){	
 			 galItems += obj.constructData(item, i);			 
           }); } else {
           if(obj.options=="caregory:[a* TO z*]") galItems = "<span class='emptyresult'>Please enter valid search parameter.</span>";
           else galItems = "<span class='emptyresult'>The Video you are searching for is currently not available. Please refine your search query.</span>"; }
			 
		obj.getData(galItems);
        });	
		
		
			this.getData = function(data){
				 this.BuildWidget (this.createNavigation(), data);
				// this.addControls();
			}
			this.constructData = function(item, i){
			   startUL=''; endUL='';
		 		if ( i == 0 || (i % this.count) == 0 ) startUL='<ul>';				
				if((i % this.count) == this.count-1)  endUL='</ul>';
				//return startUL +'<li><a href="'+  this.playerurl +'/'+ item.UrlTitle +'" ><img src="'+ this.thumburl + 'thumbnail/' + item.Thumbnail +'"  border="0" class="videoImage"></a><a href="'+  this.playerurl + '/'+ item.Id +'/'+ item.UrlTitle +'" class="videoTitle">'+ item.Title +'</a><span class="desc"> From: '+ item.Source +'<br>Channel: '+ item.Channel +'</span></li>'+endUL;
                return startUL +'<li><a href="'+  this.playerurl +'/'+ item.UrlTitle +'" ><img src="'+ this.thumburl + 'thumbnail/' + item.Thumbnail +'"  border="0" class="videoImage"></a><a href="'+  this.playerurl + '/'+ item.Id +'/'+ item.UrlTitle +'" class="videoTitle">'+ item.Title +'</a></li>'+endUL;
			}
			
		this.addControls = function(){
		  $(".menu1").each(function (index, domEle) {
			$(domEle).click(function () {			  
			 obj.getControlData(domEle);
			 
			});
		});
		}
		
		this.getControlData= function(domEle){			
			this.container.html('<div class="loader">Loading..</div>');
			var offset = domEle.rel * this.count;
			var jsonURL = this.url+'?opt=' + this.options +'&cnt='+this.count+'&offset='+offset;
		    var obj=this;
			galItems="";
			this.setCurPage(domEle.rel);
			var js =$.getJSON(jsonURL, function(json){
			if(json.total > 0) {							
 			 $.each(json.item, function(i,item){	
 			 galItems += obj.constructData(item, i);				 
           }); 
			} else {  galItems = "<span class='emptyresult'>The Video you are searching for is currently not available. Please refine your search query.</span>"; }
			  
		   obj.getData(galItems);
          });	
		
		 this.builGallery= function(galData){		 
		 $('#videoGallery').html(galData);
		 }
			
		}
			
	}
		
 }
 
 
 
 //Show related & Most viewed gallery widget//
  
  
 this.showRelated = function(){	
	this.title= "Video Gallery";
	this.count= "5";	 
	this.jsonData=null;
	this.itemArray=null;
	this.resturl='http://static.sify.com/cms/video/';
	this.thumburl='http://static.sify.com/cms/';
	this.playerurl='/watch';
	this.setUrl = function(url){
		this.url=url;	
	}
	
	this.setContainer = function(container){
		this.container=$('#'+container);	
	}
	
	this.setTitle = function(title){
		this.title=title;	
	}
	
	this.setCount = function(count){
		
		this.count=count;	
	}
	
	this.setOptions = function(options){
		this.options=options;	
	}
	this.setTpl = function(tpl){
		this.tpl=tpl;	
	}
	  	
    this.jsonurl = function(opts){
		 var opt="";
		  jQuery.each(opts, function(i, item){
				 opt += item + '|' ;
				 });
		return opt;
		}
	this.createNavigation = function(){	 
		var head='';		
		jQuery.each(this.options, function(i, item){										  
			head +='<span class="relatedTitle"><a href="javascript:" class="relatedLink"   rel="'+ item +'">'+ item +'</a></span> '; 
		 }); 
	return head;
	}
	
	
	this.BuildWidget=function(nav, galItems){		
		  var bodyContanierStart='';
		 var bodyContanierEnd='';		  
		 this.container.html(  nav +  bodyContanierStart +   galItems +   bodyContanierEnd  );
	}
	
	 
	this.getData= function(){ 
		this.container.html( '<div class="loader">Loading...</div>');
		this.jsonurl = this.url+'?opt=' + this.options[0]+'&cnt='+this.count;		 
		var obj=this;
		var galItems="";
		var js =$.getJSON(this.jsonurl, function(json){
 			if(json.total > 0) {
 			 $.each(json.item, function(i,item){	
 			 galItems += obj.constructData(item, i);			 
           }); } else {  galItems = "There are no related videos available for the current selection"; }
		obj.getData(galItems);
        });	
		this.getData = function(data){
				 this.BuildWidget (this.createNavigation(), data);
				 this.addControls();
			}
			this.constructData = function(item, i){
			  var startUL=''; endUL='';
		 		if ( i == 0 || (i % this.count) == 0 ) startUL='<ul class="relatedGroup">';				
				if((i % this.count) == this.count-1)  endUL='</ul>';
 			return startUL +'<li><span class="relatedImg"><a href="'+  this.playerurl + '/'+ item.UrlTitle +'" ><img src="'+ this.thumburl + 'thumbnail/' + item.Thumbnail +'"  border="0" class="videoImage"></a><a href="'+  this.playerurl + '/'+ item.Id +'/'+ item.UrlTitle +'" class="videoTitle">'+ item.Title +'</a><br>From: '+ item.Source +'<br>Channel: '+ item.Channel +' </span></li>'+endUL;
			}
			
		this.addControls = function(){
			$(".relatedLink").addClass("relatedLink");
			$(".relatedLink:first").addClass("selected");	
		    $(".relatedLink").each(function (index, domEle) {
			$(domEle).click(function () {	
			 $(domEle).addClass("selected");	  
			 obj.getControlData(domEle);
			 
			});
		});
		}
		
		this.getControlData= function(domEle){			
			$('#relatedVideo').html('<div class="loader">Loading Gallery....</div>');
			var jsonURL = this.url+'?opt=' + domEle.rel +'&cnt='+this.count;
			 
		    var obj=this;
			galItems="";
			var js =$.getJSON(jsonURL, function(json){
 			if(json.total > 0) {
 			 $.each(json.item, function(i,item){	
 			 galItems += obj.constructData(item, i);			 
           }); } else {  galItems = "There are no related videos available for the current selection"; }
			  
		   obj.getData(galItems);
          });	
		
		 this.builGallery= function(galData){		 
		 $('#relatedVideo').html(galData);
		 }
			
		}
			
	}
		
 }
 
jQuery.extend({
setHomepage: function(url) {
if (document.all) {
 document.body.style.behavior = 'url(#default#homepage)';
 document.body.setHomePage(url);
}
else if (window.sidebar) {
 if (window.netscape) {
  try {
   netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
  }
  catch (e) {
   var strTemp = '';
   strTemp += "this action was aviod by your browser,";
   strTemp += "if you want to enable,please enter about:config in your address line,";
   strTemp += "and change the value of signed.applets.codebase_principal_support to true";
   alert(strTemp);
  }
 }
 var prefs = Components.classes['@mozilla.org/preferences-service;1']
     .getService(Components.interfaces.nsIPrefBranch);
 prefs.setCharPref('browser.startup.homepage', url);
}
}
});

 



/*
 * FancyBox - simple and fancy jQuery plugin
 * Examples and documentation at: http://fancy.klade.lv/
 * Version: 1.2.1 (13/03/2009)
 * Copyright (c) 2009 Janis Skarnelis
 * Licensed under the MIT License: http://en.wikipedia.org/wiki/MIT_License
 * Requires: jQuery v1.3+
*/
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}(';(7($){$.b.2Q=7(){u B.2t(7(){9 1J=$(B).n(\'2Z\');5(1J.1c(/^3w\\(["\']?(.*\\.2p)["\']?\\)$/i)){1J=3t.$1;$(B).n({\'2Z\':\'45\',\'2o\':"3W:3R.4m.4d(3h=F, 3T="+($(B).n(\'41\')==\'2J-3Z\'?\'4c\':\'3N\')+", Q=\'"+1J+"\')"}).2t(7(){9 1b=$(B).n(\'1b\');5(1b!=\'2e\'&&1b!=\'2n\')$(B).n(\'1b\',\'2n\')})}})};9 A,4,16=D,s=1t 1o,1w,1v=1,1y=/\\.(3A|3Y|2p|3c|3d)(.*)?$/i;9 P=($.2q.3K&&2f($.2q.3z.2k(0,1))<8);$.b.c=7(Y){Y=$.3x({},$.b.c.2R,Y);9 2s=B;7 2h(){A=B;4=Y;2r();u D};7 2r(){5(16)u;5($.1O(4.2c)){4.2c()}4.j=[];4.h=0;5(Y.j.N>0){4.j=Y.j}t{9 O={};5(!A.1H||A.1H==\'\'){9 O={d:A.d,X:A.X};5($(A).1G("1m:1D").N){O.1a=$(A).1G("1m:1D")}4.j.2j(O)}t{9 Z=$(2s).2o("a[1H="+A.1H+"]");9 O={};3C(9 i=0;i<Z.N;i++){O={d:Z[i].d,X:Z[i].X};5($(Z[i]).1G("1m:1D").N){O.1a=$(Z[i]).1G("1m:1D")}4.j.2j(O)}3F(4.j[4.h].d!=A.d){4.h++}}}5(4.23){5(P){$(\'1U, 1Q, 1P\').n(\'1S\',\'3s\')}$("#1i").n(\'25\',4.2U).J()}1d()};7 1d(){$("#1f, #1e, #V, #G").S();9 d=4.j[4.h].d;5(d.1c(/#/)){9 U=11.3r.d.3f(\'#\')[0];U=d.3g(U,\'\');U=U.2k(U.2l(\'#\'));1k(\'<6 l="3e">\'+$(U).o()+\'</6>\',4.1I,4.1x)}t 5(d.1c(1y)){s=1t 1o;s.Q=d;5(s.3a){1K()}t{$.b.c.34();$(s).x().14(\'3b\',7(){$(".I").S();1K()})}}t 5(d.1c("17")||A.3j.2l("17")>=0){1k(\'<17 l="35" 3q="$.b.c.38()" 3o="3n\'+C.T(C.3l()*3m)+\'" 2K="0" 3E="0" Q="\'+d+\'"></17>\',4.1I,4.1x)}t{$.4p(d,7(2m){1k(\'<6 l="3L">\'+2m+\'</6>\',4.1I,4.1x)})}};7 1K(){5(4.30){9 w=$.b.c.1n();9 r=C.1M(C.1M(w[0]-36,s.g)/s.g,C.1M(w[1]-4b,s.f)/s.f);9 g=C.T(r*s.g);9 f=C.T(r*s.f)}t{9 g=s.g;9 f=s.f}1k(\'<1m 48="" l="49" Q="\'+s.Q+\'" />\',g,f)};7 2F(){5((4.j.N-1)>4.h){9 d=4.j[4.h+1].d;5(d.1c(1y)){1A=1t 1o();1A.Q=d}}5(4.h>0){9 d=4.j[4.h-1].d;5(d.1c(1y)){1A=1t 1o();1A.Q=d}}};7 1k(1j,g,f){16=F;9 L=4.2Y;5(P){$("#q")[0].1E.2u("f");$("#q")[0].1E.2u("g")}5(L>0){g+=L*2;f+=L*2;$("#q").n({\'v\':L+\'z\',\'2E\':L+\'z\',\'2i\':L+\'z\',\'y\':L+\'z\',\'g\':\'2B\',\'f\':\'2B\'});5(P){$("#q")[0].1E.2C(\'f\',\'(B.2D.4j - 20)\');$("#q")[0].1E.2C(\'g\',\'(B.2D.3S - 20)\')}}t{$("#q").n({\'v\':0,\'2E\':0,\'2i\':0,\'y\':0,\'g\':\'2z%\',\'f\':\'2z%\'})}5($("#k").1u(":19")&&g==$("#k").g()&&f==$("#k").f()){$("#q").1Z("2N",7(){$("#q").1C().1F($(1j)).21("1s",7(){1g()})});u}9 w=$.b.c.1n();9 2v=(g+36)>w[0]?w[2]:(w[2]+C.T((w[0]-g-36)/2));9 2w=(f+1z)>w[1]?w[3]:(w[3]+C.T((w[1]-f-1z)/2));9 K={\'y\':2v,\'v\':2w,\'g\':g+\'z\',\'f\':f+\'z\'};5($("#k").1u(":19")){$("#q").1Z("1s",7(){$("#q").1C();$("#k").24(K,4.2X,4.2T,7(){$("#q").1F($(1j)).21("1s",7(){1g()})})})}t{5(4.1W>0&&4.j[4.h].1a!==1L){$("#q").1C().1F($(1j));9 M=4.j[4.h].1a;9 15=$.b.c.1R(M);$("#k").n({\'y\':(15.y-18)+\'z\',\'v\':(15.v-18)+\'z\',\'g\':$(M).g(),\'f\':$(M).f()});5(4.1X){K.25=\'J\'}$("#k").24(K,4.1W,4.2W,7(){1g()})}t{$("#q").S().1C().1F($(1j)).J();$("#k").n(K).21("1s",7(){1g()})}}};7 2y(){5(4.h!=0){$("#1e, #2O").x().14("R",7(e){e.2x();4.h--;1d();u D});$("#1e").J()}5(4.h!=(4.j.N-1)){$("#1f, #2M").x().14("R",7(e){e.2x();4.h++;1d();u D});$("#1f").J()}};7 1g(){2y();2F();$(W).1B(7(e){5(e.29==27){$.b.c.1l();$(W).x("1B")}t 5(e.29==37&&4.h!=0){4.h--;1d();$(W).x("1B")}t 5(e.29==39&&4.h!=(4.j.N-1)){4.h++;1d();$(W).x("1B")}});5(4.1r){$(11).14("1N 1T",$.b.c.2g)}t{$("6#k").n("1b","2e")}5(4.2b){$("#22").R($.b.c.1l)}$("#1i, #V").14("R",$.b.c.1l);$("#V").J();5(4.j[4.h].X!==1L&&4.j[4.h].X.N>0){$(\'#G 6\').o(4.j[4.h].X);$(\'#G\').J()}5(4.23&&P){$(\'1U, 1Q, 1P\',$(\'#q\')).n(\'1S\',\'19\')}5($.1O(4.2a)){4.2a()}16=D};u B.x(\'R\').R(2h)};$.b.c.2g=7(){9 m=$.b.c.1n();$("#k").n(\'y\',(($("#k").g()+36)>m[0]?m[2]:m[2]+C.T((m[0]-$("#k").g()-36)/2)));$("#k").n(\'v\',(($("#k").f()+1z)>m[1]?m[3]:m[3]+C.T((m[1]-$("#k").f()-1z)/2)))};$.b.c.1h=7(H,2A){u 2f($.3I(H.3u?H[0]:H,2A,F))||0};$.b.c.1R=7(H){9 m=H.4g();m.v+=$.b.c.1h(H,\'3k\');m.v+=$.b.c.1h(H,\'3J\');m.y+=$.b.c.1h(H,\'3H\');m.y+=$.b.c.1h(H,\'3D\');u m};$.b.c.38=7(){$(".I").S();$("#35").J()};$.b.c.1n=7(){u[$(11).g(),$(11).f(),$(W).3i(),$(W).3p()]};$.b.c.2G=7(){5(!$("#I").1u(\':19\')){33(1w);u}$("#I > 6").n(\'v\',(1v*-40)+\'z\');1v=(1v+1)%12};$.b.c.34=7(){33(1w);9 m=$.b.c.1n();$("#I").n({\'y\':((m[0]-40)/2+m[2]),\'v\':((m[1]-40)/2+m[3])}).J();$("#I").14(\'R\',$.b.c.1l);1w=3Q($.b.c.2G,3X)};$.b.c.1l=7(){16=F;$(s).x();$("#1i, #V").x();5(4.2b){$("#22").x()}$("#V, .I, #1e, #1f, #G").S();5(4.1r){$(11).x("1N 1T")}1q=7(){$("#1i, #k").S();5(4.1r){$(11).x("1N 1T")}5(P){$(\'1U, 1Q, 1P\').n(\'1S\',\'19\')}5($.1O(4.1V)){4.1V()}16=D};5($("#k").1u(":19")!==D){5(4.26>0&&4.j[4.h].1a!==1L){9 M=4.j[4.h].1a;9 15=$.b.c.1R(M);9 K={\'y\':(15.y-18)+\'z\',\'v\':(15.v-18)+\'z\',\'g\':$(M).g(),\'f\':$(M).f()};5(4.1X){K.25=\'S\'}$("#k").31(D,F).24(K,4.26,4.2S,1q)}t{$("#k").31(D,F).1Z("2N",1q)}}t{1q()}u D};$.b.c.2V=7(){9 o=\'\';o+=\'<6 l="1i"></6>\';o+=\'<6 l="22">\';o+=\'<6 p="I" l="I"><6></6></6>\';o+=\'<6 l="k">\';o+=\'<6 l="2I">\';o+=\'<6 l="V"></6>\';o+=\'<6 l="E"><6 p="E 44"></6><6 p="E 43"></6><6 p="E 42"></6><6 p="E 3V"></6><6 p="E 3U"></6><6 p="E 3O"></6><6 p="E 3M"></6><6 p="E 3P"></6></6>\';o+=\'<a d="2P:;" l="1e"><1p p="1Y" l="2O"></1p></a><a d="2P:;" l="1f"><1p p="1Y" l="2M"></1p></a>\';o+=\'<6 l="q"></6>\';o+=\'<6 l="G"></6>\';o+=\'</6>\';o+=\'</6>\';o+=\'</6>\';$(o).2H("46");$(\'<32 4i="0" 4h="0" 4k="0"><2L><13 p="G" l="4l"></13><13 p="G" l="4o"><6></6></13><13 p="G" l="4n"></13></2L></32>\').2H(\'#G\');5(P){$("#2I").47(\'<17 p="4a" 4e="2J" 2K="0"></17>\');$("#V, .E, .G, .1Y").2Q()}};$.b.c.2R={2Y:10,30:F,1X:D,1W:0,26:0,2X:3G,2W:\'28\',2S:\'28\',2T:\'28\',1I:3B,1x:3v,23:F,2U:0.3,2b:F,1r:F,j:[],2c:2d,2a:2d,1V:2d};$(W).3y(7(){$.b.c.2V()})})(4f);',62,274,'||||opts|if|div|function||var||fn|fancybox|href||height|width|itemCurrent||itemArray|fancy_outer|id|pos|css|html|class|fancy_content||imagePreloader|else|return|top||unbind|left|px|elem|this|Math|false|fancy_bg|true|fancy_title|el|fancy_loading|show|itemOpts|pad|orig_item|length|item|isIE|src|click|hide|round|target|fancy_close|document|title|settings|subGroup||window||td|bind|orig_pos|busy|iframe||visible|orig|position|match|_change_item|fancy_left|fancy_right|_finish|getNumeric|fancy_overlay|value|_set_content|close|img|getViewport|Image|span|__cleanup|centerOnScroll|normal|new|is|loadingFrame|loadingTimer|frameHeight|imageRegExp|50|objNext|keydown|empty|first|style|append|children|rel|frameWidth|image|_proceed_image|undefined|min|resize|isFunction|select|object|getPosition|visibility|scroll|embed|callbackOnClose|zoomSpeedIn|zoomOpacity|fancy_ico|fadeOut||fadeIn|fancy_wrap|overlayShow|animate|opacity|zoomSpeedOut||swing|keyCode|callbackOnShow|hideOnContentClick|callbackOnStart|null|absolute|parseInt|scrollBox|_initialize|bottom|push|substr|indexOf|data|relative|filter|png|browser|_start|matchedGroup|each|removeExpression|itemLeft|itemTop|stopPropagation|_set_navigation|100|prop|auto|setExpression|parentNode|right|_preload_neighbor_images|animateLoading|appendTo|fancy_inner|no|frameborder|tr|fancy_right_ico|fast|fancy_left_ico|javascript|fixPNG|defaults|easingOut|easingChange|overlayOpacity|build|easingIn|zoomSpeedChange|padding|backgroundImage|imageScale|stop|table|clearInterval|showLoading|fancy_frame|||showIframe||complete|load|bmp|jpeg|fancy_div|split|replace|enabled|scrollLeft|className|paddingTop|random|1000|fancy_iframe|name|scrollTop|onload|location|hidden|RegExp|jquery|355|url|extend|ready|version|jpg|425|for|borderLeftWidth|hspace|while|300|paddingLeft|curCSS|borderTopWidth|msie|fancy_ajax|fancy_bg_w|scale|fancy_bg_sw|fancy_bg_nw|setInterval|DXImageTransform|clientWidth|sizingMethod|fancy_bg_s|fancy_bg_se|progid|66|gif|repeat||backgroundRepeat|fancy_bg_e|fancy_bg_ne|fancy_bg_n|none|body|prepend|alt|fancy_img|fancy_bigIframe|60|crop|AlphaImageLoader|scrolling|jQuery|offset|cellpadding|cellspacing|clientHeight|border|fancy_title_left|Microsoft|fancy_title_right|fancy_title_main|get'.split('|'),0,{}))

 







