// JavaScript Document
							var CrrLogoIndex,cnstLogoWidth,maxLogos
								function initLogos(varMaxLogos,restartSite) {
									CrrLogoIndex = 0
									cnstLogoWidth = 156
									maxLogos = varMaxLogos
									divLogosHolder = new Fx.Style("LogosHolder", 'marginRight', {duration:500});
									divLogosHolder.options.transition = Fx.Transitions.Quad.easeInOut;
									crrLogo = readCookie("HatayasLogo")
									if (crrLogo == "null" || crrLogo == null || restartSite=='True') {
										crrLogo = CrrLogoIndex
									} else {
										CrrLogoIndex = parseInt(crrLogo)
										divLogosHolder.set(-cnstLogoWidth*CrrLogoIndex)
									}
									$("LogosHolder").style.display = "block"
									createCookie("HatayasLogo",crrLogo,1)
									$("Logos").style.direction= "rtl"
									$("txtClickArrowLeft").style.direction = "rtl"
									$("txtClickArrowRight").style.direction = "rtl"
									$("DivideSec").style.direction = "rtl"
								}
												
								function getPreNextLogo(Dir) {
									NewLogoIndex = CrrLogoIndex + Dir
									if (CrrLogoIndex==0 && Dir < 0) {
										NewLogoIndex = 	maxLogos-1	
									} else {
										if (CrrLogoIndex == (maxLogos-1) && Dir>0) {
											NewLogoIndex  =0
										}
									}
									divLogosHolder.start(-CrrLogoIndex*cnstLogoWidth,-cnstLogoWidth*NewLogoIndex)
									CrrLogoIndex = NewLogoIndex 
									eraseCookie("HatayasLogo")
									createCookie("HatayasLogo",NewLogoIndex,1)									
								}	
													
															
								function reSizeDivider() {
									if (document.documentElement.clientHeight!=null) {
										windHeight = document.documentElement.clientHeight
										windWidth = document.documentElement.clientWidth
									} else {
										windHeight = window.innerHeight
										windWidth = window.innerWidth
									}
									if (windWidth-$("MainDiv").clientWidth<0) {
										$("LeftBackground").style.width = "0px"
									} else {
										$("LeftBackground").style.width = windWidth-$("MainDiv").clientWidth+"px"
									}
									$("LeftBackground").style.height = windHeight+"px"
									if ($("PageSec").clientHeight>windHeight) {
										$("DivideSec").style.height = $("PageSec").clientHeight - 54+"px"
									} else {
										$("DivideSec").style.height = windHeight-34+"px"
									}
 								}


								
								function createCookie(name,value,days) {
									if (days) {
										var date = new Date();
										date.setTime(date.getTime()+(days*24*60*60*1000));
										var expires = "; expires="+date.toGMTString();
									}
									else var expires = "";
									document.cookie = name+"="+value+expires+"; path=/";
								}
								
								function readCookie(name) {
									var nameEQ = name + "=";
									var ca = document.cookie.split(';');
									for(var i=0;i < ca.length;i++) {
										var c = ca[i];
										while (c.charAt(0)==' ') c = c.substring(1,c.length);
										if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
									}
									return null;
								}
								
								function eraseCookie(name) {
									createCookie(name,"",-1);
								}
								
								
								
	function choseShare() {
		if ($("slctShare").value == 1) {
			window.open('http://www.facebook.com/hatayas')
		} else {
			if ($("slctShare").value == 2) {
				window.open('http://hatayas.tumblr.com/')
			} else {
				if ($("slctShare").value == 3) {
					window.open('http://twitter.com/hatayas')
				} else {
					if ($("slctShare").value == 4) {
						window.open('RSS.asp')
					} else {
						if ($("slctShare").value == 5) {
							window.open('http://www.flickr.com/photos/52873110@N00')
						}
					}
				}				
			}
		}
		$("slctShare").value = 0
	}