// reisepanne main js

function ShowMediaSWF(m_id){
   
  /*setParentIframeHeight(height);*/  
   SWFFix.embedSWF("/flvplayer.swf", "flashcontent2", "500", "400", "8.0.0", "/js/expressInstall.swf", {mediaid: m_id, medialocation: "media1"}, {scale: "noscale", allowFullScreen: "true", bgcolor:"#fff8dc"});
};

function finishedIntro(m_id){
  $('flashcontent2_2').setStyle('display','block');
  $('flashcontent1_1').setStyle('display','none');
  
  //SWFFix.embedSWF("/homeflvplayer.swf", "flashcontent2", "500", "400", "8.0.0", "/js/expressInstall.swf", {mediaid: m_id, medialocation: "media1"}, {scale: "noscale", allowFullScreen: "true", bgcolor:"#fff8dc"});
}; 

function showDescription(){
  $('introtextswf_2').setStyle('display','none');
  $('introtextdiv').setStyle('backgroundImage','none');
  $('introtextdivcontent').setStyle('display', 'block');
  };

function showNice(){
  //document.getElementById('introtextdiv').style.backgroundImage = 'url("/templates/default/images/description_01.gif")';

};

//function showNotNice(){
  //document.getElementById('introtextdiv').style.backgroundImage = 'url("/templates/default/images/description_02.gif")';
//};

function setParentIframeHeight(height){
 /*
  var height = height + 230;
  
  if(height < 500){
    height = 530;
  }
  
  height = height + 10;
  
  parent.document.getElementById('pIframe').style.height= (height) + 'px';
  */
};


function domready () //ie6 comp
{
    var scrollbars = $$('.scrollingbar');
    if (scrollbars.length) {
        scrollbars.each (function (bar) {            
            var scrollme = new ScrollPages (bar);
        });
    }
    //console.log (scrollbars);
    //var scroller = new ScrollPages ('scroller');
};


function doClear(theText) {
  if (theText.value == theText.defaultValue) {
    theText.value = "";
  }
};


// Form Tipps 
// form     -> Formular ID
// rediv    -> hinweise-Div ID

function setUploadTipps (id_form, id_tipp) {
/*
  //return true;
  
    var uform = $(id_form);
	var uinfo = $(id_tipp);
			    
	var uptipps = {
        upload_media_type_id: 
            'media_type',
        upload_media_title_id: 
            'media_title',
        upload_media_description_id: 
            'media_description <br>ccc',
        upload_media_tags_id:
            'media_tags',
        upload_media_travel_organizer_id:
            'media_travel_organizer',
        upload_media_hotel_id:
            'media_hotel',
        upload_media_city_id:
            'media_city',
        upload_media_country_id:
            'media_country',
        upload_media_access_id:
            'media_access'
    };
			    
	var inputs = uform.getElements('input');
	   inputs.extend (uform.getElements('textarea'));
	   inputs.extend (uform.getElements('select'));
	   
	inputs.addEvent ('focus', function (e) {
	   var tid = new Event(e).target.id;
	   uinfo.innerHTML = eval(eval('"uptipps."+tid'));
    });   
    */
};



