/**
Generated	: April 19th 2010 09:34:32
ismail ŞAHAN
********************************************************************************************/
/**
init function
*************************************************************************************/
$(document).ready(function(){
	gui={
		dom:{
			bdy						:$('body'),
			cf						:$(".cf"),
			cf2						:$(".cf2"),
			rnd						:$(".rnd"),
			ajaxify					:$('.news .ajaxify'), 
			ajaxify2				:$('.product .ajaxify'), 
			ajaxify3				:$('.video-gallery .ajaxify'), 
			target					:$('#target'),
			iSlide					:$('#iSlide'),
			cr						:$('#GalleryCarausel'),
			news					:$('#news-content'),
			mc						:$('#main-content'),
			nInput					:$('#frm-hr .fc'),
			pane					:$('#pane'),
			fi						:$('#fullsize-image'),

			data:{
				
			}
		} 
	};

 Cufon.replace(gui.dom.cf,{hover: true, fontFamily: 'Myriad Pro'}); 
 Cufon.replace(gui.dom.cf2,{hover: true, fontFamily: 'Myriad Pro'}); 
 gui.dom.rnd.corner("4px");

	//flash init
	var flashvars = false;
		var params = {
		  menu: "false",
		  wmode:'transparent'
		 // bgcolor:"#000000"
		  //you can use xml file
		  //flashvars: "bgVideosXMLPath=resources/x/data.xml" // kullanmak isterseniz data dosyasını güncelleyin
		  //or comma seperated video paths
		// flashvars: "bgVideos=resources/v/video_1.flv,resources/v//video_2.flv&isLoop=trues&bufferTime=2&align=center&verticalAling=middle"
		};
		var attributes = {
		  id: "showcase_flash",
		  name: "showcase_flash"
		};
		swfobject.embedSWF("resources/f/showcase.swf", "flash-content", "1061", "567", "9.0.0","resources/f/expressInstall.swf", flashvars, params, attributes);
	gui.dom.bdy.removeClass('vh');
	if(gui.dom.cr.size()>0){
		gui.dom.cr.GalleryCarausel();
	}
	if(gui.dom.iSlide.size()>0){
	 	gui.dom.iSlide.SlideIS({delay:5000, autoplay:false,height: 270,width: 832});
	}
	gui.dom.ajaxify.ajaxify({
		target:'#news-detail-ajax',
		onStart:function(op){
		gui.dom.news.addClass('dn');
		$('#news-detail-ajax').removeClass('dn');
		$('#back-page').removeClass('dn');
		},
		onSuccess:function(op){
			Cufon.replace(('#news-detail-ajax .cf'),{hover: true, fontFamily: 'Myriad Pro'});
			('#back-page').addClass('')
			gui.dom.news.removeClass('dn');
		}
	});
	
	gui.dom.ajaxify3.ajaxify({
		target:'#vid-player'});
	
	gui.dom.ajaxify2.ajaxify({
		target:'#product-detail-ajax',
		onStart:function(op){
		gui.dom.mc.addClass('dn');
			$('#main-content2').removeClass('dn');
			$('#back-page').removeClass('dn');
		},
		onSuccess:function(op){
			Cufon.replace(('#product-detail-ajax .cf'),{hover: true, fontFamily: 'Myriad Pro'});
			gui.dom.mc.addClass('dn');
		}
	});
	if(gui.dom.ajaxify3.size()>0){
		initFadeImg($('.box'));
	}
	if(gui.dom.nInput.size()>0){
		inputHandler(gui.dom.nInput);
		 $("#file").filestyle({ 
			 image: "resources/i/browse.gif",
			 imageheight : 21,
			 imagewidth : 60,
			 width : 90
		 });

	}
	if(gui.dom.pane.size()>0){
		gui.dom.pane.jScrollPane(); 
	}


});
	

