      	$(function() {
            	$(".lavaLamp").lavaLamp({
                	fx: "backout",
                	speed: 700,
                	click: function(event, menuItem) {
                    	return false;
                	}
            	});
        	});
			
			
			$(function() {
            	$(".lavaLamp2").lavaLamp({
                	fx: "backout",
                	speed: 700,
                	click: function(event, menuItem) {
                    	return false;
                	}
            	});
        	});
			
			$(function() {
			    $('.main_photo_left').cycle();
			});
			jQuery(window).bind("load", function() {
				$('#right_scrol_1').cycle({ 
				    fx:     'scrollHorz', 
				    prev:   '#arr_left_1', 
				    next:   '#arr_right_1', 
			        speed:   400,
			        timeout: 10000,
					before: function() {  
			            $('#counter_1').html(this.title); 
			        }
				});
			});

			jQuery(window).bind("load", function() {
				$('#right_scrol_2').cycle({ 
				    fx:     'scrollHorz', 
				    prev:   '#arr_left_2', 
				    next:   '#arr_right_2', 
			        speed:   400,
			        timeout: 10000,
					before: function() {  
			            $('#counter_2').html(this.title); 
			        }
				});
			});
			
			jQuery(window).bind("load", function() {
				$('#right_scrol_3').cycle({ 
				    fx:     'scrollHorz', 
				    prev:   '#arr_left_3', 
				    next:   '#arr_right_3', 
			        speed:   400,
			        timeout: 10000,
					before: function() {  
			            $('#counter_3').html(this.title); 
			        }
				});
			});
			
			jQuery(window).bind("load", function() {
				$('#right_scrol_4').cycle({ 
				    fx:     'scrollHorz', 
				    prev:   '#arr_left_4', 
				    next:   '#arr_right_4', 
			        speed:   400,
			        timeout: 10000,
					before: function() {  
			            $('#counter_4').html(this.title); 
			        }
				});
			});
			
			jQuery(window).bind("load", function() {
				$('#right_scrol_5').cycle({ 
				    fx:     'scrollHorz', 
				    prev:   '#arr_left_5', 
				    next:   '#arr_right_5', 
			        speed:   400,
			        timeout: 10000,
					before: function() {  
			            $('#counter_5').html(this.title); 
			        }
				});
			});
			
			function showPopUp(id){	
				document.getElementById('pop_up_'+id).style.display = 'block';
			}
			function closePopUp(id){	
				document.getElementById('pop_up_'+id).style.display = 'none';
			}
			function showSplash(){
				$("#splash").animate({opacity: "show"}, 1000);
				
				$("#splash > textarea").focus();


			}
			function hideSplash(){
				$("#splash").animate({opacity: "hide"}, 1000);
			}
			
			
			function showDrop(id){
				document.getElementById(id).style.display = 'block';
			}
			function hideDrop(id){
				document.getElementById(id).style.display = 'none';
			}
			
			


			function sendText(){
				var tmp_text = document.getElementById('text_1').value;
				var old_content = document.getElementById('splash_cont').innerHTML;



	            // Create new JsHttpRequest object.
    	        var req = new JsHttpRequest();
	            // Code automatically called on load finishing.
	            req.onreadystatechange = function() {
	                if (req.readyState == 4) {
						
	                    document.getElementById('splash_cont').innerHTML = '<div style="height:200px;">'+req.responseJS.output+'</div>';
						
						setTimeout("hideSplash()", 5000);
						var tmp = "document.getElementById('splash_cont').innerHTML = '"+old_content+"'";
						setTimeout(tmp, 6000);
	                }
	            }
	            // Prepare request object (automatically choose GET or POST).
	            req.open(null, "/xhtml/send.php", true);
	            // Send data to backend.
	            req.send( { text: tmp_text } );

				
                document.getElementById('splash_cont').innerHTML = '<div style="text-align:center;height:200px;"><img src="/images/LoadingMap.gif" width="50" height="50" style="padding:70px 0 0 0;" alt="" /></div>';

		    }
			
    var myriad = {
      src: '/xhtml/myriad_pro.swf'
      ,ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.17, 1.16]
    };

    sIFR.useStyleCheck = true;
    sIFR.activate(myriad);

  
	sIFR.replace(myriad, {
		selector: 'h2.slide_title'
		,css: [
		'.sIFR-root { color: #5C5C5C; font-size: 15px; }'
		]
		,wmode: 'opaque'
	});
	

	sIFR.replace(myriad, {
		selector: '.main_photo_right_title'
		,css: [
		'.sIFR-root { color: #6473C0; font-size: 18px; background-color:#F5F5F5; }'
		]
		,wmode: 'opaque'
	});		
	
	sIFR.replace(myriad, {
		selector: 'h2.post_title'
		,css: [
		'.sIFR-root { color: #0D26A6; font-size: 18px; }'
		]
		,wmode: 'opaque'
	});
	
	sIFR.replace(myriad, {
		selector: '.main_photo_flash'
		,css: [
		'.sIFR-root { color: #7F7F7F; font-size: 14px; background-color:#F5F5F5; }'
		]
		,wmode: 'opaque'
	});	
	
	
		
		