var includeDomain="www.yasssu.com";
var IntCFeedIdAdd="";
var IntLanguageAdd="";
var StrStyleAdd="";
var languageArrayAdd="";
function includeJSF(filename)
{
	var header = document.getElementsByTagName('head').item(0);
	script = document.createElement('script');
	script.src = "http://"+includeDomain+"/lib/"+filename;
	script.type = 'text/javascript';
	header.appendChild(script);
}

function addToHead(data){
	document.getElementById("overlaycontainer").innerHTML=data;
	//alert(data);
}
	
function importForWitget(){
	var header = document.getElementsByTagName('head').item(0);
	
	script = document.createElement('script');
	script.src = "http://"+includeDomain+"/tmpl/default/jquery/jquery-latest.js";
	script.type = 'text/javascript';
	
	try{
			$.ajax({
              dataType: 'jsonp',
              jsonp: 'jsonp_callback',
              url: 'http://'+includeDomain+'/class/framework/widgetjsonRequester.php?getLanguage=true&date'+Date(),
              success: function (data) {
				
              }
     		});
	}catch(e){
		header.appendChild(script);
	}
	
	//includeJSF("main.js");
	//includeJSF("overlays.js");
}

function callYasssuAPIOnload(StrFunction){
	setTimeout(StrFunction,150);
}

function loadYasssuPostFileWiget(){
	var data= 
		
		'<div onmouseover="bodyscroll=0" id="feedempfoverBack" onclick="hideoverlay();" style="opacity:0.7; filter:Alpha(opacity = 70);z-index:1100;position:absolute;background-color:#000000;top:0px;left:0px;width:100%;height:100%;display:none">&#160</div>'+
		'<div id="registerinfoover" style="margin-top:-10px;z-index:1200;position:absolute;top:20px;left:33%;display:none">' +
		'<div id="registerinfoovertop" style="width:408px;height:300px">&#160;</div>' +
		'<div  style="padding:10px;background-image:url(http://'+includeDomain+'/tmpl/default/images/overlay.png);background-color:transparent;background-repeat:no-repeat;width:408px;_width:428px;height:235px;_height:254px">' +
      	'<div style="height:45px;width:408;background-color:#transparent;color:#00000;line-height:12px">' +
      	'	<font id="Step1Title" style="font-size:18px;font-weight:bold; font-family:Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth; color:#333333;line-height:24px">-</font><br>' +
      	'	<font id="Step1SubTitle" style="font-family:Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth;font-size:10px;">-</font>' +
     	' </div>' +
     	' <div style="height:150px;width:408;padding-left:6px;background-color:#transparent;text-align:center">' +
      	'	<div><img id="step1Graphic" src="#" height="145px" /></div>' +
      	'   <div id="CFeedIconIMGContainer" style="display:none;width:60px;height:60px;margin-top:-133px;margin-left:95px;_margin-left:-150px"><img id="CFeedIconIMG" src="#" height="57px" /></div>' +
     	'	 </div>' +
      	'	<div id="Step1Powered" style="text-align:center;margin-left:-2px;height:10px;width:408;background-color:#transparent;color:#00000;font-size:10px;line-height:12px">' +
      	'		Personalised Media ANYWHERE & ANYTIME' +
      	'	</div> ' +
       	'	<div style="margin-left:238px;_margin-left:115px;margin-top:-3px;_margin-top:-5px;margin-right:5px;float:left"><input onMouseOver="fadetoMouseOver(this)" onMouseOut="fadetoMouseOut(this)" style="border:none; margin-top:10px; font-family: Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth; font-size:14px; color: #FFFFFF;background-color:transparent; background-image:url(http://'+includeDomain+'/tmpl/default/images/button.png); background-repeat:no-repeat; width:85px; height:29px;" style="margin-top:8px;border:none; margin-top:10px; font-family: Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth; font-size:14px; color: #FFFFFF;background-color:transparent; background-image:url(http://'+includeDomain+'/tmpl/default/images/button.png); background-repeat:no-repeat; width:85px; height:29px;" onclick="hideoverlay()" type="button" value="-" id="Step1CancelButton" ></div><div style="font-size:12px; font-family:Trebuchet MS; color:#333333;margin-top:-3px;_margin-top:0px;margin-left:326px;_margin-left:318px"><input onMouseOver="fadetoMouseOver(this)" onMouseOut="fadetoMouseOut(this)" style="border:none; margin-top:10px;_margin-top:-33px; font-family: Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth; font-size:14px; color: #FFFFFF;background-color:transparent; background-image:url(http://'+includeDomain+'/tmpl/default/images/button.png); background-repeat:no-repeat; width:85px; height:29px;" onclick="hideoverlay();showoverlay(\'feedempfoverregister\');document.getElementById(\'usernameregister\').focus()" type="submit" id="Step1NextButton"  value="-"></div>'+
		'</div>'+
		'</div>';


		addToHead(data+loadStep1WidgetOverlay()+loadStepLogin());
}

function loadStep1WidgetOverlay(){
 var data=
    '<div id="feedempfoverregister" style="margin-top:-10px;z-index:1200;position:absolute;top:20px;left:33%;display:none"> ' +
    '<div id="feedempfoverregistertop" style="width:408px;height:300px">&#160;</div>' +
	'	<form method="post" onsubmit="return registerCheck()" action="index.php">' +
	'	<div  style="padding:10px;_padding:0px;_padding-left:10px;_padding-bottom:10;background-image:url(http://'+includeDomain+'/tmpl/default/images/overlay.png);background-repeat:no-repeat;background-color:transparent;width:408px;_width:428px;height:235px;_height:254px;text-align:left;"> ' +
	'	       <input type="hidden" name="register" value="1"> ' +
	'	       <div id="Step2Title" id="regtitle" style="_margin-top:-21px;font-size:18px;font-weight:bold; font-family:Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth; color:#333333;">-</div> ' +
	'	       <div id="Step2SubTitle" style="_margin-top:-21px;font-size:10px; font-family:Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth;line-height:10px; color:#666666;margin-top:3px;_margin-top:0px;">-</div> ' +
	'	       <div style="margin-top:8px;_margin-top:4px"> ' +
	'		       <table cellspacing="2" > ' +
	'		       	<tr height="23px"> ' +
	'		       		<td id="Step2Email" style="font-size:12px; font-family:Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth; color:#666666;width:120px">-</td> ' +
	'		       		<td><input id="usernameregister" name="username"  style="height:16px;border: 1px solid #999999;" type="text" size="35"></td><td></td><td></td> ' +
	'		       	</tr> ' +
	'		       	<tr height="23px"> ' +
	'		       		<td id="Step2Password" style="font-size:12px; font-family:Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth; color:#666666;">-</td> ' +
	'		       		<td><input id="passwordregister" name="password"  style="height:16px;border: 1px solid #999999;" type="password" size="20"></td><td></td><td></td> ' +
	'		       	</tr> ' +
	'		       	<tr height="20px"> ' +
	'		       		<td id="Step2PasswordRe" style="font-size:12px; font-family:Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth; color:#666666;">-</td>' +
	'		       		<td><input id="password1" name="password1"  style="height:16px;border: 1px solid #999999;" type="password" size="20"></td><td></td><td></td>' +
	'		       	</tr> ' +
	'		       	<tr height="23px" nowrap> ' +
	'		       		<td id="Step2Phone" style="font-size:12px; font-family:Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth; color:#666666;">-</td>' +
	'		       		<td style="font-size:10px; font-family:Trebuchet MS; color:#666666;"><select id="countryphoneregister" name="pretelnumber"><option>43</option><option>49</option><option>41</option><option>1</option><option>30</option><option>33</option><option>34</option></select><input id="hnumberregister" name="phonenumber"  style="height:16px;border: 1px solid #999999;" type="phonenumber" size="15">(z.B.: 6641234567)</td><td></td><td></td>' +
	'		       	</tr> ' +
	'		       	<tr height="23px"> ' +
	'		       		<td style="font-size:10px"><div  style="float:left;"><input type="checkbox" id="AGB"></div><div style="margin-top:2px"><a style="font-family:Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth;color:#55a1df;" onmouseover="this.style.textDecoration=\'underline\'" onmouseout="this.style.textDecoration=\'\'" href="http://www.yasssu.com/index.php?modul=Yasssu_viewAgb"  target="_blank" id="Step2Terms">AGB akzeptiert</a></div></td><td></td><td></td>' +
	'		       	</tr>' +
	'		        <tr height="10px">' +
	'		       		<td style="font-size:10px" colspan="3"><div id="registererrormsg" style="font-family:Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth; color:#FF0000;float:left;height:10px;">&#160;</div></td>' +
	'		       	</tr>' +
	'		       	<tr height="15px">' +
	'		   	       <table style="width:120%;padding:0" cellspacing=0 cellpadding=0 border=0>' +
	'		       		<tr> ' +
	'		       			<td width="120px"><a style="color:#55a1df;font-size:16px;font-weight:bold" onmouseover="this.style.textDecoration=\'underline\'" onmouseout="this.style.textDecoration=\'\'" href="javascript:hideoverlay();showoverlay(\'loginover\');document.getElementById(\'usernamelogin\').focus()" id="Step2YasssuUser">-</a></td><td align="Right"><input style="margin-left:23px;_margin-left:18px;border:none; margin-top:16px; font-family: Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth; font-size:14px; color: #FFFFFF;background-color:transparent; background-image:url(http://'+includeDomain+'/tmpl/default/images/button.png); background-repeat:no-repeat; width:85px; height:29px;" onMouseOver="fadetoMouseOver(this)" onMouseOut="fadetoMouseOut(this)" type="button" id="Step2BackButton" value="-" onclick="hideoverlay();showoverlay(\'registerinfoover\');"></td><td><input style="border:none; margin-top:16px; font-family: Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth; font-size:14px; color: #FFFFFF;background-color:transparent; background-image:url(http://'+includeDomain+'/tmpl/default/images/button.png); background-repeat:no-repeat; width:85px; height:29px;" onMouseOver="fadetoMouseOver(this)" onMouseOut="fadetoMouseOut(this)" type="submit" id="Step2SignupButton" value="-"></td><td></td>' +
	'		   		    </tr>' +
	'		   		   </table>' +
	'		       	</tr>' +
	'		       </table>' +
	'	       </div>' +
	'	</div>' +
	'	</div>' +
	'</form>';
	return data;
}

function fadetoMouseOver(ObjItem){
	try{ObjItem.style.opacity='0.9';}catch(E){}
	//try{ObjItem.style.filter='alpha(opacity=70)';}catch(E){}
}

function fadetoMouseOut(ObjItem){
	try{ObjItem.style.opacity='1.0';}catch(E){}
	//try{ObjItem.style.filter='alpha(opacity=100)';}catch(E){}
}

//General function for overlay show

function showoverlay(StrName){
	
	document.getElementById(StrName).style.display='';
	document.getElementById('feedempfoverBack').style.display='';
	document.getElementById('feedempfoverBack').style.top=document.body.scrollTop;

	//alert(document.getElementById('feedempfover').style.top);
	
	var theHeight;
	if (window.innerHeight) {
		theHeight=window.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight) {
		theHeight=document.documentElement.clientHeight;
	}
	else if (document.body) {
		theHeight=document.body.clientHeight;
	}	
	var procTop =""
	var procenttoPixel="";
	if(document.getElementById(StrName).style.top.indexOf("%")!=-1){
	 procTop = document.getElementById(StrName).style.top.substr(0,document.getElementById(StrName).style.top.length);
	 procTop =procTop.replace("%","");
	 procenttoPixel = theHeight * (procTop/100) + document.body.scrollTop;
	}else{
  	procenttoPixel = theHeight * (35/100) + document.body.scrollTop;
  }
  document.getElementById(StrName+"top").style.height=procenttoPixel-50;
}


//Hide  overlays

function hideoverlay(){
		//document.getElementById('feeddetailtextover').style.display='none';
		try{document.getElementById('feedempfover').style.display='none';}catch(E){}
		try{document.getElementById('feedempfoverBack').style.display='none';}catch(E){}
		try{document.getElementById('feeduploadover').style.display='none';}catch(E){}
		try{document.getElementById('loginover').style.display='none';}catch(E){}
		try{document.getElementById('helpselectorover').style.display='none';}catch(E){}
		try{document.getElementById('registerwithoutnumber').style.display='none';}catch(E){}
		try{document.getElementById('registersmscode').style.display='none';}catch(E){}
		try{document.getElementById('pwforgotten').style.display='none';}catch(E){}
		try{document.getElementById('feeduploadover_link').style.display='none';}catch(E){}
		try{document.getElementById('premiuminfoover').style.display='none';}catch(E){}
		try{document.getElementById('feedempfoverregister').style.display='none';}catch(E){}
		try{document.getElementById('registerinfooverWidget').style.display='none';}catch(E){}
		try{
			if(document.getElementById('registerinfoover').style.display!='none'){
				document.getElementById('registerinfoover').style.display='none';
				//animatedcollapse.toggle('overview');
				//load_cates('','','','');
			}
		}catch(E){}
}

function loadStepLogin(){
	var data='<form id="loginredirect" method="POST" action="http://'+includeDomain+'/index.php?modul=Feed_viewTest#histloc=mypodcast" target="_blank"> '+
	'	 <input name="username" id="usernametoredirect" type="hidden" value=""> '+
	'	 <input name="password" id="passwordtoredirect" type="hidden" value=""> '+
	'	 <input name="CFeedIdAddToYasssu" id="CFeedIdPost" type="hidden" value=""> '+
	'	 <input name="hnumber" id="hnum" type="hidden" value=""> '+
	'	 <input name="CountryPhone" id="CountryPhone" type="hidden" value=""> '+
    '     <input type="hidden" name="login" value="true"> '+
    '     </form> '+
	' 	 <!--Start LoginOverlay--> '+
	'	<div id="loginover" style="margin-top:30px;z-index:1200;position:absolute;top:20px;left:33%;display:none"> '+
	'<div id="loginovertop" style="width:408px;height:300px">&#160;</div>' +
	'	<form method="post" onsubmit="return login_to_myyasssu()"> '+
	'	<div  style="padding:20px;background-image:url(http://'+includeDomain+'/tmpl/default/images/overlay_small.png);text-align:left;background-repeat:no-repeat; background-color:transparent;width:388px;_width:428px;height:108;_height:148px;"> '+
	'			<div id="logtitle" style="margin-bottom:8px;font-size:18px;font-weight:bold; font-family:Trebuchet MS; color:#333333;">Login</div> '+
	'	       <div style="margin-top:-10px;_margin-top:-8px;"> '+
	'		       <table cellspacing="3"> '+
	'		       	<tr height="17px"> '+
	'		       		<td id="Step3Email" style="font-size:12px; font-family:Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth; color:#666666;">-</td> '+
	'		       		<td><input id="usernamelogin" name="username"  style="height:16px;border: 1px solid #999999;" type="text" size="35"></td> '+
	'		       	</tr> '+
	'		       	<tr height="17px"> '+
	'		       		<td id="Step3Password" style="font-size:12px; font-family:Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth; color:#666666;">-</td> '+
	'		       		<td><input id="passwordlogin" name="password"  style="height:16px;border: 1px solid #999999;" type="password" size="20"></td> '+
	'		       	</tr> '+
	'		       	<tr height="10px"> '+
	'		       		<td id="errorMessage" style="font-size:10px; font-family:Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth; color:#FF0000;" colspan="2">&#160;</td> '+
	'		       	</tr> '+
	'		       	<tr height="12px"> '+
	'		           <table style="width:120%" > '+
	'		       		<tr> '+
	'		       			<td style="width:170px;">&#160;</td><td align="right"><input style="margin-top:-3px;border:none; font-family: Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth; font-size:14px; color: #FFFFFF;background-color:transparent; background-image:url(http://'+includeDomain+'/tmpl/default/images/button.png); background-repeat:no-repeat; width:85px; height:29px;" onMouseOver="fadetoMouseOver(this)" onMouseOut="fadetoMouseOut(this)" type="button" value="-" id="Step3BackButton" onclick="hideoverlay();showoverlay(\'feedempfoverregister\');document.getElementById(\'usernameregister\').focus()"></td><td><input class="buttonoverlay" style="margin-top:-3px;border:none; font-family: Lucida Grande,Lucida Sans Unicode,Tahoma,Arial,Tholoth; font-size:14px; color: #FFFFFF;background-color:transparent; background-image:url(http://'+includeDomain+'/tmpl/default/images/button.png); background-repeat:no-repeat; width:85px; height:29px;" onMouseOver="fadetoMouseOver(this)" onMouseOut="fadetoMouseOut(this)" type="submit" value="Login"></td><td></td> '+
	'		   		    </tr> '+
	'		   		   </table> '+
	'		       	</tr> '+
	'		       </table> '+
	'	       </div> '+
	'	</div> '+
	'	</div> '+
 	'  </form>';
 	return data;
}

	function setPlayBorderMinopolis(objitem){
		if(selectedItemText != objitem.id){
			try{objitem.style.color="#red";}catch(E){}
			if(preSelectedBVideo==""){
			}else{
				try{
					document.getElementById(selectedItemText).style.color="";
					preSelectedBVideo="";
				}catch(E){}
			}
			try{
				preSelectedBVideo = objitem;
				selectedItemText = objitem.id;
			}catch(E){}
		}else{
			
		}
	}
	function IsNumeric(sText){
     var ValidChars = "0123456789.";
     var IsNumber=true;
     var Char;

 
     for (i = 0; i < sText.length && IsNumber == true; i++) 
        { 
        Char = sText.charAt(i); 
        if (ValidChars.indexOf(Char) == -1) 
        {
          IsNumber = false;
        }
     }
     return IsNumber;
    }
   
	
	function registerCheck(){
			document.getElementById("CountryPhone").value=document.getElementById("countryphoneregister").options[document.getElementById("countryphoneregister").options.selectedIndex].value;
			document.getElementById("hnum").value=document.getElementById("hnumberregister").value;
			if(document.getElementById('usernameregister').value==""){
				document.getElementById("registererrormsg").innerHTML=languageArrayAdd.NoEmail;//"No email adress entered!";
				return false;
			}
		    var re = new RegExp("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$");
  			var m = re.exec(document.getElementById('usernameregister').value);
  			if (m == null) {
  				document.getElementById("registererrormsg").innerHTML=languageArrayAdd.EmailIncorrect;//"E-Mail Adress is incorrect!";
				return false;
  			}
			if(document.getElementById('passwordregister').value==""){
				document.getElementById("registererrormsg").innerHTML=languageArrayAdd.NoPassword;//"No password was entered!";
				return false;
			}
			if(document.getElementById('passwordregister').value!=document.getElementById('password1').value){
				document.getElementById("registererrormsg").innerHTML=languageArrayAdd.PasswordNotMatch;//"The 2 passwords doesn't match!";
				return false;
			}
			
			if(document.getElementById('hnumberregister').value==""){
				document.getElementById("registererrormsg").innerHTML=languageArrayAdd.NoPhoneNumber;//"No phone number entered";
				return false;
			}
			if(document.getElementById('AGB').checked==false){
				document.getElementById("registererrormsg").innerHTML=languageArrayAdd.AcceptTerms;//"Please accept the terms!";
				return false;
			}
			var tmpnr=document.getElementById("hnum").value;
			if(tmpnr.substr(0,1)=="0")tmpnr=tmpnr.substr(1,tmpnr.substring);
			var hnumber=""
			if(tmpnr!=""){
				hnumber=document.getElementById("countryphoneregister").options[document.getElementById("countryphoneregister").options.selectedIndex].value+tmpnr;
			}
			$.ajax({
              dataType: 'jsonp',
              jsonp: 'jsonp_callback',
              url: 'http://'+includeDomain+'/class/framework/widgetjsonRequester.php?languageid='+IntLanguageAdd+'&username='+document.getElementById("usernameregister").value+'&password='+document.getElementById("passwordregister").value+'&hnumber='+hnumber+'&date'+Date(),
              success: function (data) {
                if(data.responser=="success"){
                    hideoverlay();
					document.getElementById("usernametoredirect").value=document.getElementById('usernameregister').value;
					document.getElementById("passwordtoredirect").value=document.getElementById('passwordregister').value;
					document.getElementById("loginredirect").submit();
                }else{
					document.getElementById("registererrormsg").innerHTML=data.responser;
                }
              }
     		});
		
			return false;
	}
	
	function login_to_myyasssu(){
			if(document.getElementById('usernamelogin').value==""){
				document.getElementById("errorMessage").innerHTML=languageArrayAdd.NoEmail;//"No Email-Adress entered!";
				return false;
			}
			if(document.getElementById('passwordlogin').value==""){
				document.getElementById("errorMessage").innerHTML=languageArrayAdd.NoPassword;//"No password entered!";
				return false;
			}
		
			$.ajax({
              dataType: 'jsonp',
              jsonp: 'jsonp_callback',
              url: 'http://'+includeDomain+'/class/framework/widgetjsonRequester.php?languageid='+IntLanguageAdd+'&username='+document.getElementById("usernamelogin").value+'&password='+document.getElementById("passwordlogin").value+'&date'+Date(),
              success: function (data) {
                if(data.responser=="success"){
                    hideoverlay();
					document.getElementById("usernametoredirect").value=document.getElementById('usernamelogin').value;
					document.getElementById("passwordtoredirect").value=document.getElementById('passwordlogin').value;
					document.getElementById("loginredirect").submit();
                }else{
					document.getElementById("errorMessage").innerHTML=data.responser;
                }
              }
     		});
		return false;
	}

function loadWidgetItems(IntTarget){
	document.getElementById("step1Graphic").src='http://'+includeDomain+'/widget/'+StrStyleAdd+'/step1.png';
	document.getElementById("CFeedIdPost").value=IntCFeedIdAdd;
	document.getElementById("errorMessage").innerHTML="";
	document.getElementById("registererrormsg").innerHTML="";
	document.getElementById("usernamelogin").value="";
	document.getElementById("passwordlogin").value="";
	document.getElementById("usernameregister").value="";
	document.getElementById("passwordregister").value="";
	document.getElementById("hnumberregister").value="";
	document.getElementById('password1').value="";
	//alert(document.getElementById("postbackvalue").value);
	if(IntTarget==0){
		document.getElementById("loginredirect").target="_blank";
	}else{
		document.getElementById("loginredirect").target="";
	}
	showoverlay('registerinfoover');
}

function populateLanguagefields(){
	document.getElementById("Step1Title").innerHTML=languageArrayAdd.Step1Title;
    document.getElementById("Step1SubTitle").innerHTML=languageArrayAdd.Step1SubTitle;
    document.getElementById("Step1NextButton").value=languageArrayAdd.ButtonNext;
    document.getElementById("Step1CancelButton").value=languageArrayAdd.ButtonCancel; 
    document.getElementById("Step1Powered").innerHTML=languageArrayAdd.Step1Powered; 
    
   	document.getElementById("Step2Title").innerHTML=languageArrayAdd.Step2Title;
    document.getElementById("Step2SubTitle").innerHTML=languageArrayAdd.Step2SubTitle;
    document.getElementById('Step2Email').innerHTML=languageArrayAdd.Step2Email;
    document.getElementById('Step2Password').innerHTML=languageArrayAdd.Step2Password;
    document.getElementById('Step2PasswordRe').innerHTML=languageArrayAdd.Step2PasswordRe;
    document.getElementById('Step2Phone').innerHTML=languageArrayAdd.Step2Phone;
    document.getElementById("Step2BackButton").value=languageArrayAdd.ButtonBack.replace("&uuml;",String.fromCharCode(252));
    document.getElementById("Step2SignupButton").value=languageArrayAdd.ButtonSignup; 
    document.getElementById("Step2Terms").innerHTML=languageArrayAdd.Step2Terms;
    
    document.getElementById('Step3Email').innerHTML=languageArrayAdd.Step2Email;
    document.getElementById('Step3Password').innerHTML=languageArrayAdd.Step2Password;
    document.getElementById("Step3BackButton").value=languageArrayAdd.ButtonBack.replace("&uuml;",String.fromCharCode(252));
    document.getElementById("Step2YasssuUser").innerHTML= languageArrayAdd.Step2YasssuUser;
    document.getElementById("countryphoneregister").selectedIndex = languageArrayAdd.PhonePrefix;
}

function addfeedtomyyasssu(IntCFeedId,IntTarget,IntLanguage,StrStyle){
  if(navigator.userAgent.indexOf("Mac OS X") != -1 && navigator.userAgent.indexOf("iPhone") != -1){
		window.open('http://'+includeDomain+'/mobile/dld/index.php?modul=Framework_viewInside&menu=101&CFeedId='+IntCFeedId+'&action=a&cm=1');
  }else{
	IntCFeedIdAdd=IntCFeedId;
	IntLanguageAdd=IntLanguage;
	
	if(document.getElementById("overlaycontainer")==null){
		var body = document.getElementsByTagName('body').item(0);
		bItem = document.createElement('font');
		bItem.id = "overlaycontainer";
		body.appendChild(bItem);
		
		loadYasssuPostFileWiget();
  }
	if(StrStyle==""){
		StrStyle="default";

		try{document.getElementById("CFeedIconIMG").src='http://'+includeDomain+'/feedicons/'+IntCFeedIdAdd+'.png';}catch(e){}
		document.getElementById("CFeedIconIMGContainer").style.display="";
	}else{
		document.getElementById("CFeedIconIMGContainer").style.display="none";
	}
	if(StrStyleAdd!=StrStyle){
			StrStyleAdd=StrStyle;
			$.ajax({
              dataType: 'jsonp',
              jsonp: 'jsonp_callback',
              url: 'http://'+includeDomain+'/class/framework/widgetjsonRequester.php?getLanguage=true&templateshortcut='+StrStyle+'&languageid='+IntLanguageAdd+'&date'+Date(),
              success: function (data) {
				languageArrayAdd = data;

				populateLanguagefields();
				loadWidgetItems(IntTarget);
				document.getElementById("loginredirect").action='http://'+includeDomain+'/index.php?modul=Feed_viewTest#histloc=mypodcast&CFeedIdAjax='+IntCFeedId;
              }
     		});
	}else{
		loadWidgetItems(IntTarget);
	}
  }

}

//imports all data
callYasssuAPIOnload("importForWitget()");

