	//Nested Side Bar Menu (Mar 20th, 09)
	//By Dynamic Drive: http://www.dynamicdrive.com/style/

   /*
	var menuids=["sidebarmenu1"]; //Enter id(s) of each Side Bar Menu's main UL, separated by commas

	function initsidebarmenu(){
	for (var i=0; i<menuids.length; i++){
	  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul");
		for (var t=0; t<ultags.length; t++){
		ultags[t].parentNode.getElementsByTagName("a")[0].className+=" subfolderstyle";
	  if (ultags[t].parentNode.parentNode.id==menuids[i]) //if this is a first level submenu
	   ultags[t].style.left=ultags[t].parentNode.offsetWidth-35+"px"; //dynamically position first level submenus to be width of main menu item
	  else //else if this is a sub level submenu (ul)
		ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth-35+"px"; //position menu to the right of menu item that activated it
		ultags[t].parentNode.onmouseover=function(){
		this.getElementsByTagName("ul")[0].style.display="block";
		};
		ultags[t].parentNode.onmouseout=function(){
		this.getElementsByTagName("ul")[0].style.display="none";
		};
		}
	  for (var t=ultags.length-1; t>-1; t--){ //loop through all sub menus again, and use "display:none" to hide menus (to prevent possible page scrollbars
	  ultags[t].style.visibility="visible";
	  ultags[t].style.display="none";
	  }
	  }
	}

	if (window.addEventListener)
	window.addEventListener("load", initsidebarmenu, false);
	else if (window.attachEvent)
	window.attachEvent("onload", initsidebarmenu);

	*/
	$('document').ready(function(){

	
		$(function()
		{
			// this initialises the demo scollpanes on the page.
			//$('#pane').jScrollPane({showArrows:true});
			$('#pane').jScrollPane({scrollbarWidth:30, scrollbarMargin:0, showArrows:true });
			//S$('div.jScrollPaneDrag').css("height","100"); 
			
		});
	});	



  //<[CDATA[
  
  var cochin = {
    src: apppath + '/images/default/cochin.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]
  };

  var rockwell = {
    src: apppath + '/images/default/rockwell.swf'
    	,ratios: [6, 1.41, 9, 1.35, 15, 1.29, 21, 1.25, 22, 1.22, 27, 1.24, 29, 1.21, 34, 1.22, 41, 1.21, 45, 1.2, 46, 1.21, 59, 1.2, 68, 1.19, 69, 1.2, 96, 1.19, 97, 1.18, 102, 1.19, 103, 1.18, 107, 1.19, 108, 1.18, 112, 1.19, 114, 1.18, 116, 1.19, 120, 1.18, 121, 1.19, 1.18]
  };

  //sIFR.delayCSS  = true;
  // sIFR.domains = ['novemberborn.net'] / Don't check for domains in this demo
  sIFR.activate(cochin, rockwell);


  //sIFR.replace(cochin, {selector: 'h1,h2,h3'});

  sIFR.replace(cochin, {
	    selector: 'h1',
	    forceSingleLine: true,
	    // ratios: [8,1.41,11,1.31,15,1.29,25,1.25,28,1.23,32,1.22,33,1.23,43,1.22,61,1.21,64,1.2,65,1.21,112,1.2,113,1.19,115,1.2,118,1.19,122,1.2,124,1.19,1.2],
	    css: [
	        '.sIFR-root { color:#444444; font-size: 30px; letter-spacing:-0.10;}',
	        'a {color: #000000; text-decoration: none;}',
	        'a:hover {color: #FF8126;}',
	        'a:active {color: #FF8126;}'
	        ],
	    wmode: 'transparent',
	    tuneWidth: '5',
	    forceWidth: true

	});


  sIFR.replace(cochin, {
	    selector: 'h2',
	    forceSingleLine: true,
	    // ratios: [8,1.41,11,1.31,15,1.29,25,1.25,28,1.23,32,1.22,33,1.23,43,1.22,61,1.21,64,1.2,65,1.21,112,1.2,113,1.19,115,1.2,118,1.19,122,1.2,124,1.19,1.2],
	    css: [
	        '.sIFR-root { color:#444444; font-size: 18px; letter-spacing:-0.10;}',
	        'a {color: #000000; text-decoration: none;}',
	        'a:hover {color: #FF8126;}',
	        'a:active {color: #FF8126;}',
	        ],
	    wmode: 'transparent',
	    tuneWidth: '5',
	    forceWidth: false

	});


  sIFR.replace(cochin, {
	    selector: 'h3',
	    forceSingleLine: true,
	    css: [
	        '.sIFR-root { color:#444444; font-size: 18px; letter-spacing:-0.10;}',
	        'a {color: #000000; text-decoration: none;}',
	        'a:hover {color: #FF8126;}',
	        'a:active {color: #FF8126;}',
			'margin:0; padding:0'
	        ],
	    wmode: 'transparent',
	    tuneWidth: '5',
	    forceWidth: true

	});


  //]]>
  
  
  function out()
	{
		var newsletterEmail = jQuery('#newsletterEmail').val();
		if (newsletterEmail=="" || newsletterEmail==" " || newsletterEmail=="  " || newsletterEmail=="  " || newsletterEmail=="   "){
			jQuery('#newsletterEmail').val(maillist_message);
		} 
	}
	function kontrol(){
		var newsletterEmail = jQuery('#newsletterEmail').val();
		if(isEmail(newsletterEmail)){
			return true;

		}else{
			alert(maillist_error);
			return false;
			
		}	
	}

	function isEmail(string)
	{
	  if (string == "") return false; 
	  if (string.indexOf ('@',0) == -1 || string.indexOf ('.',0) == -1) return false;
	  if (string.indexOf ('@', string.indexOf('@',0) + 1) != -1) return false;
	  if (string.indexOf (',',0) != -1 || string.indexOf (';',0) != -1 || string.indexOf (':',0) != -1) return false;
	  if(string.substring(0,1) == "@" || string.substring(0,1) == ".") return false;
	  return true;
	}  
