﻿/* ***********************************************************************************
   ***********************************************************************************
   ATTENTION: this file must be compiled with JSCRIPT.NET : coreTemplateFrames.compile
   this file MUST WORKS PROPERTLY on both sides CLIENT AND SERVER
   ***********************************************************************************
   ***********************************************************************************
*/
/*@cc_on @*/
/*@if (@_fast)
import System.Threading;

package Isrotel.CoreTemplate {
class frames{
var _sDir : String = Thread.CurrentThread.CurrentUICulture.TextInfo.IsRightToLeft ? "rtl" : "ltr";
var _sAlign : String = (_sDir == "rtl") ? "right" : "left";
var _sAlign_1 : String = (_sDir == "rtl") ? "left" : "right";
function frame_write(html : String) : String{    
    //return html;
    return html.replace(/\~dir/gi, _sDir).replace(/\~align_1/gi, _sAlign_1).replace(/\~align/gi, _sAlign);
}
function frame_dir() : String{
    return _sDir;
}
function frame_align() : String{
    return _sAlign;
}
function frame_align_1() : String{
    return _sAlign_1;
}
function fixMediaPathByLang(path : String) : String{
    return path.replace(/\~dir/gi, _sDir);
}
@else @*/
function frame_write(html){
    //var sHtml = html; 
    var sDir = PioWeb.pageDir_get();
    var sAlign = (sDir == "rtl") ? "right" : "left";
    var sAlign_1 = (sDir == "rtl") ? "left" : "right";
    
    var sHtml = html.replace(/\~dir/gi, sDir).replace(/\~align_1/gi, sAlign_1).replace(/\~align/gi, sAlign);
    document.write(sHtml);
    return sHtml;
}
function frame_dir(){
    return PioWeb.pageDir_get();
}
function frame_align(){
    return (PioWeb.pageDir_get() == "rtl") ? "right" : "left";
}
function frame_align_1(){
    return (PioWeb.pageDir_get() == "rtl") ? "left" : "right";
}
function fixMediaPathByLang(path){
    return path.replace(/\~dir/g,PioWeb.pageDir_get()).replace(/\~lang/g, SITEUTILS_LANG);
}
/*@end @*/


function frame0(step){
     var sHtml = "";
     
     switch(step){
         case 1 :             
             sHtml += '<div class="title">';
             break;
         case 2 :
             sHtml += '</div>';
             sHtml += '<div class="text">';
             break;
         case 3 : 
             sHtml += '</div>';
             break;
     }
     
     return frame_write(sHtml);
}

function frame1(step){
     var sHtml = "";
     
     switch(step){
         case 1 :     
             sHtml += '<div class="frame1" dir="ltr">';
             sHtml += '<div class="bghor" style="background-position:left -26px;"><div><div style="background-position:right 0px;"><img alt=" "/></div></div><img src="coreTemplate/img/g0.gif" alt=" " style="background-position:left-52px;"/></div>';
             sHtml += '<div class="header"><div dir="' + frame_dir() + '" class="title">';
             break;
         case 2 :
             sHtml += '</div></div>';
             sHtml += '<div class="bghor" style="height:11px;background-position:left -33px;"><div><div style="height:11px;background-position:right -7px;"><img alt=" "/></div></div><img src="coreTemplate/img/g0.gif" alt=" " style="height:11px;background-position:left -59px;"/></div>';
             sHtml += '<div class="content"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 : 
             sHtml += '</div></div>';
             sHtml += '<div class="bghor" style="background-position:left -47px;"><div><div style="background-position:right -21px;"><img alt=" "/></div></div><img src="coreTemplate/img/g0.gif" alt=" " style="background-position:left -73px;"/></div>';
             sHtml += '</div>';
             break;
     }
     return frame_write(sHtml);
}


function frame2(step, contentsBgClass){
     var sHtml = "";
     
     switch(step){
         case 1 : 
             sHtml += '<div class="frame2">'; 
             sHtml += '<table class="header" border="0" cellpadding="0" cellspacing="0" dir="ltr">'
             sHtml += '<tr style="height:5px;">';
	         sHtml += '<td valign="top" class="bghor1c"><img src="coreTemplate/img/frame2_hdr_01.gif" alt=" "></td>';
		     sHtml += '<td class="bghor"><img alt=" "/></td>';
		     sHtml += '<td valign="top" class="bghor1c"><img src="coreTemplate/img/frame2_hdr_03.gif" alt=" "></td>';
		     sHtml += '</tr><tr>';
		     sHtml += '<td class="bghor bghor2 no-repeat" style="background-position:left -9px;"><img alt=" "/></td>';
		     sHtml += '<td class="bghor bghor2 title" style="background-position:left -101px;width:100%;" dir="' + frame_dir() + '">';		     
			 break;
         case 2 :
             sHtml += '</td>';
             sHtml += '<td class="bghor bghor2 no-repeat" style="background-position:-7 -9px;"><img alt=" "/></td>';
             sHtml += '</tr><tr>';
             sHtml += '<td valign="top"><img src="coreTemplate/img/frame2_hdr_07.gif" width="5" height="2" alt=" "></td>';
		     sHtml += '<td class="bghor bghor3" style="background-position:left -6px;"><img alt=" "/></td>';
		     sHtml += '<td valign="top"><img src="coreTemplate/img/frame2_hdr_09.gif" width="5" height="2" alt=" "></td>';
             sHtml += '</tr>';
             sHtml += '</table>';
             
             if(contentsBgClass == null){
                 contentsBgClass = "bluegrad"
             }
             
             sHtml += '<div class="content '+contentsBgClass+' dir="' + frame_dir() + '"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 : 
             sHtml += '</div></div>';             
             sHtml += '</div>';
             break;
     }
     
     return frame_write(sHtml);
}


function frame3(step){
     //return frame2(step, "blue");
     
     var sHtml = "";
     var sCssCalss = "bluegrad-vert";
     
     switch(step){
         case 1 : 
             sHtml += frame_write('<div class="frame3">');
             sHtml += frame2(step, sCssCalss);             
			 break;
         case 2 :
             sHtml += frame2(step, sCssCalss);
             break;
         case 3 : 
             sHtml += frame2(step, sCssCalss);
             sHtml += frame_write('</div>');
             break;
     }
          
     return sHtml;     
}


function frame4(step){
     var sHtml = "";
     
     switch(step){
         case 1 : 
             sHtml += '<div class="frame4">';
             sHtml += '<div class="bghor">';
             sHtml += '<div class="header"><div class="title" dir="' + frame_dir() + '">';
             break;
         case 2 :
             sHtml += '</div></div>';
             sHtml += '<div class="content"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 :          
             sHtml += '</div></div>';
             sHtml += '</div>';
             sHtml += '<div class="bghorftr"><img alt=" "/></div>';
             sHtml += '</div>';
             break;
     }
     
     return frame_write(sHtml);
}


function frame5(step){
     var sHtml = "";
     
     switch(step){
         case 1 : 
             sHtml += '<div class="frame5">';
             sHtml += '<div class="bghor">';
             sHtml += '<div class="header"><div class="title" dir="' + frame_dir() + '">';
             break;
         case 2 :
             sHtml += '</div></div>';
             sHtml += '<div class="content"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 :          
             sHtml += '</div></div>';
             sHtml += '</div>';
             sHtml += '<div class="bghorftr"><img alt=" "/></div>';
             sHtml += '</div>';
             break;
     }
     
     return frame_write(sHtml);
}


function frame6(step){
     var sHtml = "";
     
     switch(step){
         case 1 : 
             sHtml += '<div class="frame6">';
             sHtml += '<div class="bghor">';
             sHtml += '<div class="header"><div class="title" dir="' + frame_dir() + '">';
             break;
         case 2 :
             sHtml += '</div></div>';
             sHtml += '<div class="content"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 :          
             sHtml += '</div></div>';
             sHtml += '</div>';
             sHtml += '<div class="bghorftr"><img alt=" "/></div>';
             sHtml += '</div>';
             break;
     }
     
     return frame_write(sHtml);
}


function frame7(step){
     var sHtml = "";
     
     switch(step){
         case 1 : 
             sHtml += '<div class="frame7">';
             sHtml += '<div class="bghor">';
             sHtml += '<div class="header"><div class="title" dir="' + frame_dir() + '">';
             break;
         case 2 :
             sHtml += '</div></div>';
             sHtml += '<div class="content"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 :          
             sHtml += '</div></div>';
             sHtml += '</div>';
             sHtml += '</div>';
             break;
     }
     
     return frame_write(sHtml);
}


function frame8(step){
     var sHtml = "";
     
     switch(step){
         case 1 :     
             sHtml += '<div class="frame8" dir="ltr">';
             sHtml += '<div class="bghor" style="background-position:left -7px;"><div><div style="background-position:right -14px;"><img alt=" "/></div></div><img src="coreTemplate/img/g0.gif" alt=" " style="background-position:left 0px;"/></div>';
             sHtml += '<div class="bgver"><div>';
             sHtml += '<div class="header"><div dir="' + frame_dir() + '" class="title">';
             break;
         case 2 :
             sHtml += '</div></div>';
             sHtml += '<div class="content"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 : 
             sHtml += '</div></div>';
             sHtml += '</div></div>';
             sHtml += '<div class="bghor" style="background-position:left -30px;"><div><div style="background-position:right -38px;"><img alt=" "/></div></div><img src="coreTemplate/img/g0.gif" alt=" " style="background-position:left -23px;"/></div>';
             sHtml += '</div>';
             break;
     }
     
     return frame_write(sHtml);
}

function frame9(step){
     var sHtml = "";
     
     switch(step){
         case 1 :     
             sHtml += '<div class="frame9" dir="ltr">';
             sHtml += '<div class="bghor" style="background-position:left -7px;"><div><div style="background-position:right -14px;"><img alt=" "/></div></div><img src="coreTemplate/img/g0.gif" alt=" " style="background-position:left 0px;"/></div>';
             sHtml += '<div class="bgver"><div>';
             sHtml += '<div class="header"><div dir="' + frame_dir() + '" class="title">';
             break;
         case 2 :
             sHtml += '</div></div>';
             sHtml += '<div class="content"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 : 
             sHtml += '</div></div>';
             sHtml += '</div></div>';
             sHtml += '<div class="bghor" style="background-position:left -30px;"><div><div style="background-position:right -37px;"><img alt=" "/></div></div><img src="coreTemplate/img/g0.gif" alt=" " style="background-position:left -23px;"/></div>';
             sHtml += '</div>';
             break;
     }
     
     return frame_write(sHtml);
}


function frame10(step){
     var sHtml = "";              
              
     switch(step){
         case 1 :                             
             sHtml += '<div class="frame10" dir="ltr">';
             sHtml += '<table class="frame10" border="0" cellpadding="0" cellspacing="0">';
	         sHtml += '<tr style="height:14px;">';
		     sHtml += '<td valign="top" style="width:14px;"><img src="coreTemplate/img/frame10_01.png" width="14" height="14" alt=" "></td>';
		     sHtml += '<td valign="top" style="background-image:url(coreTemplate/img/frame10_02.png);background-repeat:repeat-x;"><img width="1" height="14" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="top" style="width:14px;"><img src="coreTemplate/img/frame10_03.png" width="14" height="14" alt=" "></td>';
	         sHtml += '</tr>'
	         sHtml += '<tr style="height:140px;">'
		     sHtml += '<td valign="top" style="width:14px;background-image:url(coreTemplate/img/frame10_05_1.png);background-repeat:repeat-y;"><img width="14" height="140" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="top" style="background-image:url(coreTemplate/img/frame10_06_1.png);background-repeat:repeat-x;">';
             //sHtml += '<div style="position:relative;top:-10px;">';
             sHtml += '<div class="header"><div dir="' + frame_dir() + '" class="title">';
             break;
         case 2 :
             sHtml += '</div></div>';
             sHtml += '<div class="content"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 : 
             sHtml += '</div></div>';
             //sHtml += '</div>';                         
             sHtml += '</td>';
		     sHtml += '<td valign="top" style="width:14px;background-image:url(coreTemplate/img/frame10_07_1.png);background-repeat:repeat-y;"><img width="14" height="140" alt=" " style="visibility:hidden;"></td>';
	         sHtml += '</tr>';
	         sHtml += '<tr style="height:14px;">';
		     sHtml += '<td valign="bottom" style="width:14px;"><img src="coreTemplate/img/frame10_11.png" width="14" height="14" alt=" "></td>';
		     sHtml += '<td valign="bottom" style="background-image:url(coreTemplate/img/frame10_12.png);background-repeat:repeat-x;background-position:left bottom;"><img width="1" height="14" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="bottom" style="width:14px;text-align:right;"><img src="coreTemplate/img/frame10_13.png" width="14" height="14" alt=" "></td>';
	         sHtml += '</tr>';
             sHtml += '</table>';                         
             sHtml += '</div>';
             break;
     }
     
     return frame_write(sHtml);
}


function frame11(step){
     var sHtml = "";              
              
     switch(step){
         case 1 :                             
             sHtml += '<div class="frame11" dir="ltr">';
             sHtml += '<table class="frame11" border="0" cellpadding="0" cellspacing="0">';
	         sHtml += '<tr style="height:18px;">';
		     sHtml += '<td valign="top" style="width:21px;"><img src="coreTemplate/img/frame11_01.png" width="21" height="18" alt=" "></td>';
		     sHtml += '<td valign="top" style="background-image:url(coreTemplate/img/frame11_02.png);background-repeat:repeat-x;"><img width="1" height="18" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="top" style="width:21px;"><img src="coreTemplate/img/frame11_04.png" width="21" height="18" alt=" "></td>';
	         sHtml += '</tr>'
	         sHtml += '<tr style="height:92px;">'
		     sHtml += '<td valign="top" style="width:21px;background-image:url(coreTemplate/img/frame11_05_1.png);background-repeat:repeat-y;"><img width="21" height="92" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="middle" style="background-image:url(coreTemplate/img/frame11_06_1.png);background-repeat:repeat-x;">';
             sHtml += '<div>';
             sHtml += '<div class="header"><div dir="' + frame_dir() + '" class="title">';
             break;
         case 2 :
             sHtml += '</div></div>';
             sHtml += '<div class="content"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 : 
             sHtml += '</div></div>';    
             sHtml += '</div>';                     
             sHtml += '</td>';
		     sHtml += '<td valign="top" style="width:21px;background-image:url(coreTemplate/img/frame11_07_1.png);background-repeat:repeat-y;"><img width="21" height="92" alt=" " style="visibility:hidden;"></td>';
	         sHtml += '</tr>';
	         sHtml += '<tr style="height:20px;">';
		     sHtml += '<td valign="bottom" style="width:21px;"><img src="coreTemplate/img/frame11_08.png" width="21" height="20" alt=" "></td>';
		     sHtml += '<td valign="bottom" style="background-image:url(coreTemplate/img/frame11_09.png);background-repeat:repeat-x;background-position:left bottom;"><img width="1" height="20" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="bottom" style="width:21px;text-align:right;"><img src="coreTemplate/img/frame11_10.png" width="21" height="20" alt=" "></td>';
	         sHtml += '</tr>';
             sHtml += '</table>';                         
             sHtml += '</div>';
             break;
     }
     
     return frame_write(sHtml);
}


function frame12(step){
     var sHtml = "";              
              
     switch(step){
         case 1 :                             
             sHtml += '<div class="frame12" dir="ltr">';
             sHtml += '<table class="frame12" border="0" cellpadding="0" cellspacing="0">';
	         sHtml += '<tr style="height:4px;">';
		     sHtml += '<td valign="top" style="width:4px;"><img src="coreTemplate/img/frame12_01.png" width="4" height="4" alt=" "></td>';
		     sHtml += '<td valign="top" style="background-image:url(coreTemplate/img/frame12_02.png);background-repeat:repeat-x;"><img width="1" height="4" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="top" style="width:4px;"><img src="coreTemplate/img/frame12_04.png" width="4" height="4" alt=" "></td>';
	         sHtml += '</tr>'
	         sHtml += '<tr style="height:43px;background-color:#C5ECFE;">'
		     sHtml += '<td valign="top" style="width:4px;"><img src="coreTemplate/img/frame12_05.png" width="4" height="43" alt=" "></td>';
		     sHtml += '<td valign="middle" style="background-image:url(coreTemplate/img/frame12_06.png);background-repeat:repeat-x;">';
             sHtml += '<div class="header"><div dir="' + frame_dir() + '" class="title">';
             break;
         case 2 :
             sHtml += '</div></div>';
             sHtml += '<div class="content"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 : 
             sHtml += '</div></div>';                         
             sHtml += '</td>';
		     sHtml += '<td valign="top" style="width:4px;"><img src="coreTemplate/img/frame12_07.png" width="4" height="43" alt=" "></td>';
	         sHtml += '</tr>';
	         sHtml += '<tr style="height:4px;">';
		     sHtml += '<td valign="bottom" style="width:4px;"><img src="coreTemplate/img/frame12_08.png" width="4" height="4" alt=" "></td>';
		     sHtml += '<td valign="bottom" style="background-image:url(coreTemplate/img/frame12_09.png);background-repeat:repeat-x;background-position:left bottom;"><img width="1" height="4" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="bottom" style="width:4px;text-align:right;"><img src="coreTemplate/img/frame12_10.png" width="4" height="4" alt=" "></td>';
	         sHtml += '</tr>';
             sHtml += '</table>';                         
             sHtml += '</div>';
             break;
     }
     
     return frame_write(sHtml);
}


function frame13(step){
     var sHtml = "";              
     
     switch(step){
         case 1 :                             
             sHtml += '<div class="frame13" dir="ltr">';
             sHtml += '<table class="frame13" cellpadding="0">';
	         sHtml += '<tr style="height:4px;">';
		     sHtml += '<td valign="top" class="frame13" style="width:4px;"><img src="coreTemplate/img/frame13_01.png" width="4" height="4" alt=" "></td>';
		     sHtml += '<td valign="top" class="frame13" style="border-top-width:1px;"><img width="1" height="4" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="top" class="frame13" style="width:4px;text-align:right;"><img src="coreTemplate/img/frame13_03.png" width="4" height="4" alt=" "></td>';
	         sHtml += '</tr>'
	         sHtml += '<tr>'
		     sHtml += '<td valign="top" class="frame13" style="width:4px;border-left-width:1px;"><img width="4" height="1" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="middle">';
             sHtml += '<div class="header"><div dir="' + frame_dir() + '" class="title">';
             break;
         case 2 :
             sHtml += '</div></div>';
             sHtml += '<div class="content"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 : 
             sHtml += '</div></div>';                         
             sHtml += '</td>';
		     sHtml += '<td valign="top" class="frame13" style="width:4px;border-right-width:1px;"><img width="4" height="1" alt=" " style="visibility:hidden;"></td>';
	         sHtml += '</tr>';
	         sHtml += '<tr style="height:4px;">';
		     sHtml += '<td valign="bottom" class="frame13" style="width:4px;"><img src="coreTemplate/img/frame13_06.png" width="4" height="4" alt=" "></td>';
		     sHtml += '<td valign="bottom" class="frame13" style="border-bottom-width:1px;"><img width="1" height="4" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="bottom" class="frame13" style="width:4px;text-align:right;"><img src="coreTemplate/img/frame13_07.png" width="4" height="4" alt=" "></td>';
	         sHtml += '</tr>';
             sHtml += '</table>';                         
             sHtml += '</div>';
             break;
     }
     
     return frame_write(sHtml);
}



function frame14(step){
     var sHtml = "";              
              
     switch(step){
         case 1 :                             
             sHtml += '<div class="frame14" dir="ltr">';
             sHtml += '<table class="frame14" border="0" cellpadding="0" cellspacing="0">';
	         sHtml += '<tr style="height:45px;">';
		     sHtml += '<td valign="top" style="width:28px;"><img src="coreTemplate/img/frame14_01.png" width="28" height="45" alt=" "></td>';
		     sHtml += '<td valign="top" style="background-image:url(coreTemplate/img/frame14_02_1.png);background-repeat:repeat-x;">';
		     sHtml += '<div style="padding-top:16px;padding-bottom:0px;"><div class="header"><div dir="' + frame_dir() + '" class="title">';             
             break;
         case 2 :
             sHtml += '</div></div>';
             sHtml += '</td>';
             sHtml += '<td valign="top" style="width:29px;"><img src="coreTemplate/img/frame14_03.png" width="29" height="45" alt=" "></td>';
	         sHtml += '</tr>'
	         sHtml += '<tr style="height:92px;">'
		     sHtml += '<td valign="top" style="width:28px;background-image:url(coreTemplate/img/frame14_04_1.png);background-repeat:repeat-y;"><img width="28" height="92" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="middle" style="background-image:url(coreTemplate/img/frame14_05.png);background-repeat:no-repeat;background-color:white;">';
             sHtml += '<div class="content"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 : 
             sHtml += '</div></div>';    
             sHtml += '</div>';                     
             sHtml += '</td>';
		     sHtml += '<td valign="top" style="width:29px;background-image:url(coreTemplate/img/frame14_06_1.png);background-repeat:repeat-y;"><img width="29" height="92" alt=" " style="visibility:hidden;"></td>';
	         sHtml += '</tr>';
	         sHtml += '<tr style="height:28px;">';
		     sHtml += '<td valign="bottom" style="width:28px;"><img src="coreTemplate/img/frame14_07.png" width="28" height="28" alt=" "></td>';
		     sHtml += '<td valign="bottom" style="background-image:url(coreTemplate/img/frame14_08_1.png);background-repeat:repeat-x;background-position:left bottom;"><img width="1" height="28" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="bottom" style="width:29px;text-align:right;"><img src="coreTemplate/img/frame14_09.png" width="29" height="28" alt=" "></td>';
	         sHtml += '</tr>';
             sHtml += '</table>';                         
             sHtml += '</div>';
             break;
     }
     
     return frame_write(sHtml);
}


function frame15(step, headerBgClass){
     var sHtml = "";
     
     switch(step){
         case 1 : 
             var sHeaderClass = (headerBgClass == null) ? "" : " " + headerBgClass;
             sHtml += '<div class="frame15">';
             sHtml += '<div class="header' + sHeaderClass + '"><div class="title" dir="' + frame_dir() + '">';
             break;
         case 2 :
             sHtml += '</div></div>';
             sHtml += '<div class="content"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 :          
             sHtml += '</div></div>';
             sHtml += '</div>';             
             break;
     }
     
     return frame_write(sHtml);
}

function frame16(step){  
     var sHtml = "";       
     switch(step){
         case 1 : 
             sHtml += frame15(1, null);
             break;
         case 2 :
             sHtml += frame15(2, null);
             sHtml += frame15(3, null);
             sHtml += frame_write("<div class=\"frame16\">");
             sHtml += frame5(1);
             sHtml += frame5(2);             
             break;
         case 3 :          
             sHtml += frame5(3);  
             sHtml += frame_write("</div>");          
             break;
     }
     
     return sHtml;
}


function frame17(step){
     var sHtml = "";
     
     switch(step){
         case 1 : 
             sHtml += '<div class="frame17">';
             sHtml += '<table class="frame17" border="0" cellpadding="10" cellspacing="0"><tr><td class="frame17" dir="ltr">';
             sHtml += '<div class="header"><div class="title"><div dir="' + frame_dir() + '">';
             break;
         case 2 :
             sHtml += '</div></div></div>';
             sHtml += '<div class="content" dir="' + frame_dir() + '"><div class="text">';
             break;
         case 3 :          
             sHtml += '</div></div>';
             sHtml += '</td></tr></table>';
             sHtml += '</div>';             
             break;
     }
     
     return frame_write(sHtml);     
}


function frame18(step){
     var sHtml = "";
     
     switch(step){
         case 1 :                             
             sHtml += '<div class="frame18" dir="ltr">';
             sHtml += '<table class="frame18" border="0" cellpadding="0" cellspacing="0">';
	         sHtml += '<tr style="height:7px;">';
		     sHtml += '<td valign="top" style="width:7px;"><img src="coreTemplate/img/frame18_01.gif" width="7" height="7" alt=" "></td>';
		     sHtml += '<td valign="top" style="background-image:url(coreTemplate/img/frame18_02.gif);background-repeat:repeat-x;"><img width="1" height="7" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="top" style="width:7px;"><img src="coreTemplate/img/frame18_03.gif" width="7" height="7" alt=" "></td>';
	         sHtml += '</tr>'
	         sHtml += '<tr>'
		     sHtml += '<td valign="top" style="width:7px;background-image:url(coreTemplate/img/frame18_04.gif);background-repeat:repeat-y;"><img width="7" height="1" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="middle" style="background-color:white;">';
             sHtml += '<div class="header"><div dir="' + frame_dir() + '" class="title">';
             break;
         case 2 :
             sHtml += '</div></div>';
             sHtml += '<div class="content"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 : 
             sHtml += '</div></div>';
             sHtml += '</td>';
		     sHtml += '<td valign="top" style="width:7px;background-image:url(coreTemplate/img/frame18_06.gif);background-repeat:repeat-y;"><img width="7" height="1" alt=" " style="visibility:hidden;"></td>';
	         sHtml += '</tr>';
	         sHtml += '<tr style="height:7px;">';
		     sHtml += '<td valign="bottom" style="width:7px;"><img src="coreTemplate/img/frame18_07.gif" width="7" height="7" alt=" "></td>';
		     sHtml += '<td valign="bottom" style="background-image:url(coreTemplate/img/frame18_08.gif);background-repeat:repeat-x;background-position:left bottom;"><img width="1" height="7" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="bottom" style="width:7px;text-align:right;"><img src="coreTemplate/img/frame18_09.gif" width="7" height="7" alt=" "></td>';
	         sHtml += '</tr>';
             sHtml += '</table>';                         
             sHtml += '</div>';
             break;
     }
     
     return frame_write(sHtml);     
}


function frame19(step){
     var sHtml = "";
     
     switch(step){
         case 1 :                             
             sHtml += '<div class="frame19" dir="ltr">';
             sHtml += '<table class="frame19" border="0" cellpadding="0" cellspacing="0">';
	         sHtml += '<tr style="height:35px;">';
		     sHtml += '<td valign="top" style="width:15px;"><img src="coreTemplate/img/frame19_01.png" width="15" height="35" alt=" "></td>';
		     sHtml += '<td valign="top" style="background-image:url(coreTemplate/img/frame19_02.png);background-repeat:repeat-x;">';
		     sHtml += '<div style="padding-top:8px;padding-bottom:0px;"><div class="header"><div dir="' + frame_dir() + '" class="title">';             
             break;
         case 2 :
             sHtml += '</div></div>';
             sHtml += '</td>';
             sHtml += '<td valign="top" style="width:15px;"><img src="coreTemplate/img/frame19_03.png" width="15" height="35" alt=" "></td>';
	         sHtml += '</tr>'
	         sHtml += '<tr>'
		     sHtml += '<td valign="top" style="width:15px;background-image:url(coreTemplate/img/frame19_04.png);background-repeat:repeat-y;"><img width="15" height="1" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="top" style="background-color:white;">';
             sHtml += '<div class="content"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 : 
             sHtml += '</div></div>';    
             sHtml += '</div>';                     
             sHtml += '</td>';
		     sHtml += '<td valign="top" style="width:15px;background-image:url(coreTemplate/img/frame19_06.png);background-repeat:repeat-y;"><img width="15" height="1" alt=" " style="visibility:hidden;"></td>';
	         sHtml += '</tr>';
	         sHtml += '<tr style="height:16px;">';
		     sHtml += '<td valign="bottom" style="width:15px;"><img src="coreTemplate/img/frame19_07.png" width="15" height="16" alt=" "></td>';
		     sHtml += '<td valign="bottom" style="background-image:url(coreTemplate/img/frame19_08.png);background-repeat:repeat-x;background-position:left bottom;"><img width="1" height="16" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="bottom" style="width:15px;text-align:right;"><img src="coreTemplate/img/frame19_09.png" width="15" height="16" alt=" "></td>';
	         sHtml += '</tr>';
             sHtml += '</table>';                         
             sHtml += '</div>';
             break;
     }
     
     return frame_write(sHtml);        
}


function frame20(step){
     var sHtml = "";
     
     switch(step){
         case 1 :                                            
             sHtml += '<div class="frame20" dir="ltr">';
             sHtml += '<table class="frame20" border="0" cellpadding="0" cellspacing="0">';
	         sHtml += '<tr style="height:31px;">';
		     sHtml += '<td valign="top" style="width:5px;"><img src="coreTemplate/img/frame20_01.png" width="5" height="31" alt=" "></td>';
		     sHtml += '<td valign="top" style="background-image:url(coreTemplate/img/frame20_02.png);background-repeat:repeat-x;">';
		     sHtml += '<div style="padding:6px 0px 0px 0px;"><div class="header"><div dir="' + frame_dir() + '" class="title" style="padding:0px 6px 0px 6px;">';             
             break;
         case 2 :
             sHtml += '</div></div>';
             sHtml += '</td>';
             sHtml += '<td valign="top" style="width:4px;"><img src="coreTemplate/img/frame20_03.png" width="4" height="31" alt=" "></td>';
	         sHtml += '</tr>'
	         sHtml += '<tr>'
		     sHtml += '<td valign="top" style="width:5px;background-image:url(coreTemplate/img/frame20_04.png);background-repeat:repeat-y;"><img width="5" height="1" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="top" style="background-color:#EFF8FD;">';
             sHtml += '<div class="content"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 : 
             sHtml += '</div></div>';    
             sHtml += '</div>';                     
             sHtml += '</td>';
		     sHtml += '<td valign="top" style="width:4px;background-image:url(coreTemplate/img/frame20_06.png);background-repeat:repeat-y;"><img width="4" height="1" alt=" " style="visibility:hidden;"></td>';
	         sHtml += '</tr>';
	         sHtml += '<tr style="height:7px;">';
		     sHtml += '<td valign="bottom" style="width:5px;"><img src="coreTemplate/img/frame20_07.png" width="5" height="7" alt=" "></td>';
		     sHtml += '<td valign="bottom" style="background-image:url(coreTemplate/img/frame20_08.png);background-repeat:repeat-x;background-position:left bottom;"><img width="1" height="7" alt=" " style="visibility:hidden;"></td>';
		     sHtml += '<td valign="bottom" style="width:4px;text-align:right;"><img src="coreTemplate/img/frame20_09.png" width="4" height="7" alt=" "></td>';
	         sHtml += '</tr>';
             sHtml += '</table>';                         
             sHtml += '</div>';
             break;
     }
     
     return frame_write(sHtml);        
}


function frame21(step, envelopeFrame){
     var sHtml = "";
     
     switch(step){
         case 1 :     
             if(envelopeFrame != null){
                 sHtml += '<div class="frame' + envelopeFrame + '">';
             }   
             sHtml += '<div class="frame21">';
             sHtml += '<div class="frame21-bghor"><img alt=" " style="height:5px;visibility:hidden;"/></div>';
             sHtml += '<div class="frame21-bgver">';
             sHtml += '<div class="header"><div dir="' + frame_dir() + '" class="title">';
             break;
         case 2 :
             sHtml += '</div></div>';
             sHtml += '<div class="content"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 : 
             sHtml += '</div></div>';
             sHtml += '</div>';
             sHtml += '<div class="frame21-bghor"><img alt=" " style="height:5px;visibility:hidden;"/></div>';
             sHtml += '</div>';
             if(envelopeFrame != null){
                 sHtml += '</div>';
             }
             break;
     }
     
     return frame_write(sHtml);        
}

function frame22(step){
     return frame21(step, 22);        
}

function frame23(step){
     var sHtml = "";
     
     switch(step){
         case 1 : 
             sHtml += '<div class="frame23">';
             sHtml += '<div class="header"><div class="title" dir="' + frame_dir() + '">';
             break;
         case 2 :
             sHtml += '</div></div>';
             sHtml += '<div class="content"><div dir="' + frame_dir() + '" class="text">';
             break;
         case 3 :          
             sHtml += '</div></div>';
             sHtml += '</div>';             
             break;
     }
     
     return frame_write(sHtml);        
}

function frame24(step){
     return frame15(step, "header-light");        
}

/*@cc_on @*/
/*@if (@_fast)
}}
@else @*/
/*@end @*/